File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java | |||
Method name: boolean addAllUnique(int, Collection extends E>)
|
Method name: boolean addAllUnique(Collection extends E>)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | E object = objects.next();↵ | 1 | E object = objects.next();↵ | |
2 | assign(index, validate(index, object));↵ | 2 | assign(i, validate(i, object));↵ | |
3 | didAdd(index, object);↵ | 3 | didAdd(i, object);↵ | |
4 | didChange();↵ | 4 |
| |
5 | ++index; | |||
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 declared in the same class |
Number of node comparisons | 21 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | E object = objects.next(); |
| 7 | E object = objects.next(); | |||||||||||||
10 | assign(index, validate(index, object)); |
| 8 | assign(i, validate(i, object)); | |||||||||||||
11 | didAdd(index, object); |
| 9 | didAdd(i, object); | |||||||||||||
12 | didChange(); | 10 | didChange(); | ||||||||||||||
13 | ++index; |
| |
Row | Violation |
---|---|
1 | Type java.util.Iterator<> of variable objects does not match with type java.util.Iterator<> of variable objects |
2 | Unmatched statement ++index; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |