File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java | |||
Method name: void testJava2DToValue()
|
Method name: void testValueToJava2D()
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500);↵ | 1 | Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500);↵ | |
2 | RectangleEdge edge = RectangleEdge.BOTTOM;↵ | 2 | RectangleEdge edge = RectangleEdge.BOTTOM;↵ | |
3 | // set axis bounds to be both greater than 1↵ | 3 | // set axis bounds to be both greater than 1↵ | |
4 | this.axis.setRange(10, 20);↵ | 4 | this.axis.setRange(10, 20);↵ | |
5 | checkPointsToValue(edge, plotArea);↵ | 5 | checkPointsToJava2D(edge, plotArea);↵ | |
6 | // check for bounds interval that includes 1↵ | 6 | // check for bounds interval that includes 1↵ | |
7 | this.axis.setRange(0.5, 10);↵ | 7 | this.axis.setRange(0.5, 10);↵ | |
8 | checkPointsToValue(edge, plotArea);↵ | 8 | checkPointsToJava2D(edge, plotArea);↵ | |
9 | // check for bounds interval that includes 1↵ | 9 | // check for bounds interval that includes 1↵ | |
10 | this.axis.setRange(0.2, 20);↵ | 10 | this.axis.setRange(0.2, 20);↵ | |
11 | checkPointsToValue(edge, plotArea);↵ | 11 | checkPointsToJava2D(edge, plotArea);↵ | |
12 | // check for both bounds smaller than 1↵ | 12 | // check for both bounds smaller than 1↵ | |
13 | this.axis.setRange(0.2, 0.7);↵ | 13 | this.axis.setRange(0.2, 0.7);↵ | |
14 | checkPointsToValue(edge, plotArea); | 14 | checkPointsToJava2D(edge, plotArea); | |
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 declared in the same class |
Number of node comparisons | 82 |
Number of mapped statements | 10 |
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500); | 1 | Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500); | |||||||||||||||
2 | RectangleEdge edge = RectangleEdge.BOTTOM; | 2 | RectangleEdge edge = RectangleEdge.BOTTOM; | |||||||||||||||
3 | this.axis.setRange(10, 20); | 3 | this.axis.setRange(10, 20); | |||||||||||||||
4 | checkPointsToValue(edge, plotArea); |
| 4 | checkPointsToJava2D(edge, plotArea); | ||||||||||||||
5 | this.axis.setRange(0.5, 10); | 5 | this.axis.setRange(0.5, 10); | |||||||||||||||
6 | checkPointsToValue(edge, plotArea); |
| 6 | checkPointsToJava2D(edge, plotArea); | ||||||||||||||
7 | this.axis.setRange(0.2, 20); | 7 | this.axis.setRange(0.2, 20); | |||||||||||||||
8 | checkPointsToValue(edge, plotArea); |
| 8 | checkPointsToJava2D(edge, plotArea); | ||||||||||||||
9 | this.axis.setRange(0.2, 0.7); | 9 | this.axis.setRange(0.2, 0.7); | |||||||||||||||
10 | checkPointsToValue(edge, plotArea); |
| 10 | checkPointsToJava2D(edge, plotArea); |
Row | Violation |
---|---|
1 | Expression checkPointsToValue(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression checkPointsToJava2D(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression checkPointsToValue(edge,plotArea) is a void method call, and thus it cannot be parameterized |
4 | Expression checkPointsToJava2D(edge,plotArea) is a void method call, and thus it cannot be parameterized |
5 | Expression checkPointsToValue(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression checkPointsToJava2D(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression checkPointsToValue(edge,plotArea) is a void method call, and thus it cannot be parameterized |
8 | Expression checkPointsToJava2D(edge,plotArea) is a void method call, and thus it cannot be parameterized |
9 | Expression checkPointsToValue(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression checkPointsToJava2D(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression checkPointsToValue(edge,plotArea) is a void method call, and thus it cannot be parameterized |
12 | Expression checkPointsToJava2D(edge,plotArea) is a void method call, and thus it cannot be parameterized |
13 | Expression checkPointsToValue(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression checkPointsToJava2D(edge,plotArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression checkPointsToValue(edge,plotArea) is a void method call, and thus it cannot be parameterized |
16 | Expression checkPointsToJava2D(edge,plotArea) is a void method call, and thus it cannot be parameterized |