File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/BinaryResourceImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/BinaryResourceImpl.java | |||
Method name: void loadFeatureMap(FeatureMap.Internal)
|
Method name: void loadEObjects(InternalEList
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (duplicateCount != count)↵ | 1 | if (duplicateCount != count)↵ | |
2 | {↵ | 2 | {↵ | |
3 | featureMap.move(duplicateCount, count);↵ | 3 | internalEObjects.move(duplicateCount, count);↵ | |
4 | }↵ | 4 | }↵ | |
5 | indices[duplicateCount] = i;↵ | 5 | indices[duplicateCount] = i;↵ | |
6 | ++count;↵ | 6 | ++count;↵ | |
7 | ++duplicateCount;↵ | 7 | ++duplicateCount;↵ | |
8 | existingValues[j] = null;↵ | 8 | existingValues[j] = null;↵ | |
9 | continue LOOP; | 9 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 34 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
17 | if (duplicateCount != count) | 18 | if (duplicateCount != count) | |||||||
18 | featureMap.move(duplicateCount, count); |
| | |||||||
|
| 19 | internalEObjects.move(duplicateCount, count); | |||||||
19 | indices[duplicateCount] = i; | 20 | indices[duplicateCount] = i; | |||||||
20 | ++count; | 21 | ++count; | |||||||
21 | ++duplicateCount; | 22 | ++duplicateCount; | |||||||
22 | existingValues[j] = null; | | ||||||||
| 23 | existingValues[j] = null; | ||||||||
23 | continue LOOP; |
| 24 | continue LOOP; |
Row | Violation |
---|---|
1 | Unmatched statement featureMap.move(duplicateCount,count); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement internalEObjects.move(duplicateCount,count); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Statement continue LOOP; without innermost loop |
4 | Statement continue LOOP; without innermost loop |
5 | Clone fragment #1 returns variables duplicateCount, indices , while Clone fragment #2 returns variables duplicateCount, indices |