File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java | |||
Method name: void merge(List
|
Method name: void merge(List
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | indices[i++] = indices2[i2++];↵ | 1 | indices[i++] = indices2[i2++];↵ | |
2 | collection.add(o2);↵ | 2 | collection.add(o2);↵ | |
3 | o2 = iter2.hasNext() ? iter2.next() : null; | 3 |
| |
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 | 8 |
Number of mapped statements | 3 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
24 | indices[i++] = indices2[i2++]; | 32 | indices[i++] = indices2[i2++]; | |
25 | collection.add(o2); | 33 | collection.add(o2); | |
26 | o2 = iter2.hasNext() ? iter2.next() : null; | 34 | o2 = iter2.hasNext() ? iter2.next() : null; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables o2, i2, i , while Clone fragment #2 returns variables o2, i, i2 |