File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/TickType.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PlotOrientation.java | |||
Method name: Object readResolve()
|
Method name: Object readResolve()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | Object result = null;↵ | 1 | Object result = null;↵ | |
2 | if (this.equals(TickType.MAJOR)) {↵ | 2 | if (this.equals(PlotOrientation.HORIZONTAL)) {↵ | |
3 | result = TickType.MAJOR;↵ | 3 | result = PlotOrientation.HORIZONTAL;↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (this.equals(TickType.MINOR)) {↵ | 5 | else if (this.equals(PlotOrientation.VERTICAL)) {↵ | |
6 | result = TickType.MINOR;↵ | 6 | result = PlotOrientation.VERTICAL;↵ | |
7 | }↵ | 7 | }↵ | |
8 | return result; | 8 |
| |
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 17 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Object result = null; | 1 | Object result = null; | |||||||||||||||||||
2 | if (this.equals(TickType.MAJOR)) |
| 2 | if (this.equals(PlotOrientation.HORIZONTAL)) | ||||||||||||||||||
|
| 3 | result = PlotOrientation.HORIZONTAL; | |||||||||||||||||||
3 | result = TickType.MAJOR; |
| | |||||||||||||||||||
4 | else if (this.equals(TickType.MINOR)) |
| 4 | else if (this.equals(PlotOrientation.VERTICAL)) | ||||||||||||||||||
|
| 5 | result = PlotOrientation.VERTICAL; | |||||||||||||||||||
5 | result = TickType.MINOR; |
| | |||||||||||||||||||
6 | return result; | 6 | return result; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.axis.TickType does not match with type org.jfree.chart.plot.PlotOrientation |
2 | Type org.jfree.chart.axis.TickType of variable TickType.MAJOR does not match with type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.HORIZONTAL |
3 | Unmatched statement result=PlotOrientation.HORIZONTAL; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result=TickType.MAJOR; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Type org.jfree.chart.axis.TickType does not match with type org.jfree.chart.plot.PlotOrientation |
6 | Type org.jfree.chart.axis.TickType of variable TickType.MINOR does not match with type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.VERTICAL |
7 | Unmatched statement result=PlotOrientation.VERTICAL; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Unmatched statement result=TickType.MINOR; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |