File path: /jfreechart-1.0.10/src/org/jfree/chart/labels/ItemLabelAnchor.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PieLabelLinkStyle.java | |||
Method name: Object readResolve()
|
Method name: Object readResolve()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (this.equals(ItemLabelAnchor.OUTSIDE10)) {↵ | 1 | if (this.equals(PieLabelLinkStyle.STANDARD)) {↵ | |
2 | result = ItemLabelAnchor.OUTSIDE10;↵ | 2 | result = PieLabelLinkStyle.STANDARD;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (this.equals(ItemLabelAnchor.OUTSIDE11)) {↵ | 4 | else if (this.equals(PieLabelLinkStyle.QUAD_CURVE)) {↵ | |
5 | result = ItemLabelAnchor.OUTSIDE11;↵ | 5 | result = PieLabelLinkStyle.QUAD_CURVE;↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if (this.equals(ItemLabelAnchor.OUTSIDE12)) {↵ | 7 | else if (this.equals(PieLabelLinkStyle.CUBIC_CURVE)) {↵ | |
8 | result = ItemLabelAnchor.OUTSIDE12;↵ | 8 | result = PieLabelLinkStyle.CUBIC_CURVE;↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.9 |
Clones location | Clones are in different classes |
Number of node comparisons | 27 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46 | if (this.equals(ItemLabelAnchor.OUTSIDE10)) |
| 2 | if (this.equals(PieLabelLinkStyle.STANDARD)) | ||||||||||||||||||
|
| 3 | result = PieLabelLinkStyle.STANDARD; | |||||||||||||||||||
47 | result = ItemLabelAnchor.OUTSIDE10; |
| | |||||||||||||||||||
48 | else if (this.equals(ItemLabelAnchor.OUTSIDE11)) |
| 4 | else if (this.equals(PieLabelLinkStyle.QUAD_CURVE)) | ||||||||||||||||||
|
| 5 | result = PieLabelLinkStyle.QUAD_CURVE; | |||||||||||||||||||
49 | result = ItemLabelAnchor.OUTSIDE11; |
| | |||||||||||||||||||
50 | else if (this.equals(ItemLabelAnchor.OUTSIDE12)) |
| 6 | else if (this.equals(PieLabelLinkStyle.CUBIC_CURVE)) | ||||||||||||||||||
|
| 7 | result = PieLabelLinkStyle.CUBIC_CURVE; | |||||||||||||||||||
51 | result = ItemLabelAnchor.OUTSIDE12; |
| |
Row | Violation |
---|---|
1 | Type org.jfree.chart.labels.ItemLabelAnchor does not match with type org.jfree.chart.plot.PieLabelLinkStyle |
2 | Type org.jfree.chart.labels.ItemLabelAnchor of variable ItemLabelAnchor.OUTSIDE10 does not match with type org.jfree.chart.plot.PieLabelLinkStyle of variable PieLabelLinkStyle.STANDARD |
3 | Type org.jfree.chart.labels.ItemLabelAnchor does not match with type org.jfree.chart.plot.PieLabelLinkStyle |
4 | Type org.jfree.chart.labels.ItemLabelAnchor of variable ItemLabelAnchor.OUTSIDE11 does not match with type org.jfree.chart.plot.PieLabelLinkStyle of variable PieLabelLinkStyle.QUAD_CURVE |
5 | Type org.jfree.chart.labels.ItemLabelAnchor does not match with type org.jfree.chart.plot.PieLabelLinkStyle |
6 | Type org.jfree.chart.labels.ItemLabelAnchor of variable ItemLabelAnchor.OUTSIDE12 does not match with type org.jfree.chart.plot.PieLabelLinkStyle of variable PieLabelLinkStyle.CUBIC_CURVE |
7 | Unmatched statement result=ItemLabelAnchor.OUTSIDE10; cannot be moved, because it updates a variable modified in other unmapped statements |
8 | Unmatched statement result=ItemLabelAnchor.OUTSIDE11; cannot be moved, because it updates a variable modified in other unmapped statements |
9 | Unmatched statement result=ItemLabelAnchor.OUTSIDE12; cannot be moved, because it updates a variable modified in other unmapped statements |
10 | Unmatched statement result=PieLabelLinkStyle.STANDARD; cannot be moved, because it updates a variable modified in other unmapped statements |
11 | Unmatched statement result=PieLabelLinkStyle.QUAD_CURVE; cannot be moved, because it updates a variable modified in other unmapped statements |
12 | Unmatched statement result=PieLabelLinkStyle.CUBIC_CURVE; cannot be moved, because it updates a variable modified in other unmapped statements |