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.baseToolTipGenerator != null) {↵ | |
2 | if (this.toolTipGenerator instanceof PublicCloneable) {↵ | 2 | if (this.baseToolTipGenerator instanceof PublicCloneable) {↵ | |
3 | PublicCloneable pc↵ | 3 | PublicCloneable pc↵ | |
4 | = (PublicCloneable) this.toolTipGenerator;↵ | 4 | = (PublicCloneable) this.baseToolTipGenerator;↵ | |
5 | clone.toolTipGenerator↵ | 5 | clone.baseToolTipGenerator↵ | |
6 | = (CategoryToolTipGenerator) pc.clone();↵ | 6 | = (CategoryToolTipGenerator) pc.clone();↵ | |
7 | }↵ | 7 | }↵ | |
8 | else {↵ | 8 | else {↵ | |
9 | throw new CloneNotSupportedException(↵ | 9 | throw new CloneNotSupportedException(↵ | |
10 | "Tool tip generator not cloneable.");↵ | 10 | "Base tool tip generator not cloneable.");↵ | |
11 | }↵ | 11 | }↵ | |
12 | } | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (this.toolTipGenerator != null) |
| 21 | if (this.baseToolTipGenerator != null) | ||||||||||
15 | if (this.toolTipGenerator instanceof PublicCloneable) |
| 22 | if (this.baseToolTipGenerator instanceof PublicCloneable) | ||||||||||
16 | PublicCloneable pc = (PublicCloneable)this.toolTipGenerator; |
| 23 | PublicCloneable pc = (PublicCloneable)this.baseToolTipGenerator; | ||||||||||
17 | clone.toolTipGenerator = (CategoryToolTipGenerator)pc.clone(); |
| 24 | clone.baseToolTipGenerator = (CategoryToolTipGenerator)pc.clone(); | ||||||||||
else | else | |||||||||||||
18 | throw new CloneNotSupportedException("Tool tip generator not cloneable."); |
| 25 | throw new CloneNotSupportedException("Base tool tip generator not cloneable."); |
Row | Violation |
---|