File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java | |||
Method name: Object clone()
|
Method name: Object clone()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (this.toolTipGenerator != null) {↵ | 1 | if (this.itemURLGenerator != null) {↵ | |
2 | if (this.toolTipGenerator instanceof PublicCloneable) {↵ | 2 | if (this.itemURLGenerator instanceof PublicCloneable) {↵ | |
3 | PublicCloneable pc = (PublicCloneable) this.toolTipGenerator;↵ | 3 | PublicCloneable pc = (PublicCloneable) this.itemURLGenerator;↵ | |
4 | clone.toolTipGenerator = (CategoryToolTipGenerator) pc.clone();↵ | 4 | clone.itemURLGenerator = (CategoryURLGenerator) pc.clone();↵ | |
5 | }↵ | 5 | }↵ | |
6 | else {↵ | 6 | else {↵ | |
7 | throw new CloneNotSupportedException(↵ | 7 | throw new CloneNotSupportedException(↵ | |
8 | "Tool tip generator not cloneable.");↵ | 8 | "Item URL generator not cloneable.");↵ | |
9 | }↵ | 9 | }↵ | |
10 | } | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |