File path: /jfreechart-1.0.10/tests/org/jfree/data/time/junit/QuarterTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/data/time/junit/WeekTests.java | |||
Method name: void setUp()
|
Method name: void setUp()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | this.q1Y1900 = new Quarter(1, 1900);↵ | 1 | this.w1Y1900 = new Week(1, 1900);↵ | |
2 | this.q2Y1900 = new Quarter(2, 1900);↵ | 2 | this.w2Y1900 = new Week(2, 1900);↵ | |
3 | this.q3Y9999 = new Quarter(3, 9999);↵ | 3 | this.w51Y9999 = new Week(51, 9999);↵ | |
4 | this.q4Y9999 = new Quarter(4, 9999); | 4 | this.w52Y9999 = new Week(52, 9999); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
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 | this.q1Y1900 = new Quarter(1, 1900); |
| 1 | this.w1Y1900 = new Week(1, 1900); | |||||||||||||||||||||||
2 | this.q2Y1900 = new Quarter(2, 1900); |
| 2 | this.w2Y1900 = new Week(2, 1900); | |||||||||||||||||||||||
3 | this.q3Y9999 = new Quarter(3, 9999); |
| 3 | this.w51Y9999 = new Week(51, 9999); | |||||||||||||||||||||||
4 | this.q4Y9999 = new Quarter(4, 9999); |
| 4 | this.w52Y9999 = new Week(52, 9999); |
Row | Violation |
---|---|
1 | Expression this.q1Y1900 is a field being modified, and thus it cannot be parameterized |
2 | Expression this.w1Y1900 is a field being modified, and thus it cannot be parameterized |
3 | Expression new Quarter(1,1900) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression new Week(1,1900) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression this.q2Y1900 is a field being modified, and thus it cannot be parameterized |
6 | Expression this.w2Y1900 is a field being modified, and thus it cannot be parameterized |
7 | Expression new Quarter(2,1900) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression new Week(2,1900) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression this.q3Y9999 is a field being modified, and thus it cannot be parameterized |
10 | Expression this.w51Y9999 is a field being modified, and thus it cannot be parameterized |
11 | Expression new Quarter(3,9999) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression new Week(51,9999) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression this.q4Y9999 is a field being modified, and thus it cannot be parameterized |
14 | Expression this.w52Y9999 is a field being modified, and thus it cannot be parameterized |
15 | Expression new Quarter(4,9999) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Expression new Week(52,9999) cannot be parameterized, because it has dependencies to/from statements that will be extracted |