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++] = indices1[i1++];↵ | 1 | indices[i++] = indices1[i1++];↵ | |
2 | collection.add(o1);↵ | 2 | collection.add(o1);↵ | |
3 | o1 = iter1.hasNext() ? iter1.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 | 7 |
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 | |
---|---|---|---|---|
21 | indices[i++] = indices1[i1++]; | 28 | indices[i++] = indices1[i1++]; | |
22 | collection.add(o1); | 29 | collection.add(o1); | |
23 | o1 = iter1.hasNext() ? iter1.next() : null; | 30 | o1 = iter1.hasNext() ? iter1.next() : null; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables o1, i1, i , while Clone fragment #2 returns variables o1, i, i1 |