File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/DateAxis.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/DateAxis.java | |||
Method name: Date previousStandardDate(Date, DateTickUnit)
|
Method name: Date previousStandardDate(Date, DateTickUnit)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (this.tickMarkPosition == DateTickMarkPosition.START) {↵ | 1 | if (this.tickMarkPosition == DateTickMarkPosition.START) {↵ | |
2 | minutes = 0;↵ | 2 | months = 0;↵ | |
3 | seconds = 0;↵ | 3 | days = 1;↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {↵ | 5 | else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {↵ | |
6 | minutes = 30;↵ | 6 | months = 6;↵ | |
7 | seconds = 0;↵ | 7 | days = 1;↵ | |
8 | }↵ | 8 | }↵ | |
9 | else {↵ | 9 | else {↵ | |
10 | minutes = 59;↵ | 10 | months = 11;↵ | |
11 | seconds = 59;↵ | 11 | days = 31;↵ | |
12 | } | 12 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 51 |
Number of mapped statements | 8 |
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) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67 | if (this.tickMarkPosition == DateTickMarkPosition.START) | 115 | if (this.tickMarkPosition == DateTickMarkPosition.START) | ||||||||||||||
68 | minutes = 0; |
| 117 | days = 1; | |||||||||||||
69 | seconds = 0; |
| 116 | months = 0; | |||||||||||||
70 | else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) | 118 | else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) | ||||||||||||||
71 | minutes = 30; |
| 120 | days = 1; | |||||||||||||
72 | seconds = 0; |
| 119 | months = 6; | |||||||||||||
else | else | ||||||||||||||||
73 | minutes = 59; |
| 122 | days = 31; | |||||||||||||
74 | seconds = 59; |
| 121 | months = 11; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables minutes, seconds , while Clone fragment #2 returns variables months, days |