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.itemLabelGenerator != null) {↵ | 1 | if (this.baseItemURLGenerator != null) {↵ | |
2 | if (this.itemLabelGenerator instanceof PublicCloneable) {↵ | 2 | if (this.baseItemURLGenerator instanceof PublicCloneable) {↵ | |
3 | PublicCloneable pc↵ | 3 | PublicCloneable pc↵ | |
4 | = (PublicCloneable) this.itemLabelGenerator;↵ | 4 | = (PublicCloneable) this.baseItemURLGenerator;↵ | |
5 | clone.itemLabelGenerator↵ | 5 | clone.↵ | |
6 | = (CategoryItemLabelGenerator) pc.clone();↵ | 6 | baseItemURLGenerator = (CategoryURLGenerator) pc.clone();↵ | |
7 | }↵ | 7 | }↵ | |
8 | else {↵ | 8 | else {↵ | |
9 | throw new CloneNotSupportedException(↵ | 9 | throw new CloneNotSupportedException(↵ | |
10 | "ItemLabelGenerator not cloneable.");↵ | 10 | "Base item URL generator not cloneable.");↵ | |
11 | }↵ | 11 | }↵ | |
12 | } | 12 |
| |
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 |