File path: /jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/PlotTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/PlotTests.java | |||
Method name: void testEquals()
|
Method name: void testEquals()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | plot1.setDrawingSupplier(new DefaultDrawingSupplier(↵ | 1 | plot2.setDrawingSupplier(new DefaultDrawingSupplier(↵ | |
2 | new Paint[] {Color.blue}, new Paint[] {Color.red}, ↵ | 2 | new Paint[] {Color.blue}, new Paint[] {Color.red}, ↵ | |
3 | new Stroke[] {new BasicStroke(1.1f)}, ↵ | 3 | new Stroke[] {new BasicStroke(1.1f)}, ↵ | |
4 | new Stroke[] {new BasicStroke(9.9f)}, ↵ | 4 | new Stroke[] {new BasicStroke(9.9f)}, ↵ | |
5 | new Shape[] {new Rectangle(1, 2, 3, 4)})); | 5 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58 | plot1.setDrawingSupplier(new DefaultDrawingSupplier(new Paint[] {Color.blue}, new Paint[] {Color.red}, new Stroke[] {new BasicStroke(1.1f)}, new Stroke[] {new BasicStroke(9.9f)}, new Shape[] {new Rectangle(1, 2, 3, 4)})); |
| 60 | plot2.setDrawingSupplier(new DefaultDrawingSupplier(new Paint[] {Color.blue}, new Paint[] {Color.red}, new Stroke[] {new BasicStroke(1.1f)}, new Stroke[] {new BasicStroke(9.9f)}, new Shape[] {new Rectangle(1, 2, 3, 4)})); |
Row | Violation |
---|