File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/DateChooser.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/DateChooser.java | |||
Method name: void _refresh()
|
Method name: void _refresh()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | int y = selectedDate.get(Calendar.YEAR);↵ | 1 | int y = selectedDate.get(Calendar.YEAR);↵ | |
2 | int y1 = maxDate.get(Calendar.YEAR);↵ | 2 | int y0 = minDate.get(Calendar.YEAR);↵ | |
3 | int m = selectedDate.get(Calendar.MONTH);↵ | 3 | int m = selectedDate.get(Calendar.MONTH);↵ | |
4 | int m1 = maxDate.get(Calendar.MONTH); | 4 | int m0 = minDate.get(Calendar.MONTH); | |
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 the same method |
Number of node comparisons | 16 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | int y = selectedDate.get(Calendar.YEAR); | 8 | int y = selectedDate.get(Calendar.YEAR); | ||||||||||||||
22 | int y1 = maxDate.get(Calendar.YEAR); |
| 9 | int y0 = minDate.get(Calendar.YEAR); | |||||||||||||
23 | int m = selectedDate.get(Calendar.MONTH); | 10 | int m = selectedDate.get(Calendar.MONTH); | ||||||||||||||
24 | int m1 = maxDate.get(Calendar.MONTH); |
| 11 | int m0 = minDate.get(Calendar.MONTH); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables y, y1, m, m1 , while Clone fragment #2 returns variables y, y0, m, m0 |