setAllAttributesCollectionModified(true);
setAllReferencesCollectionModified(true);
setAllStructuralFeaturesCollectionModified(true);
setAllContainmentsCollectionModified(true);
break;
setAllReferencesCollectionModified(true);
setAllStructuralFeaturesCollectionModified(true);
setAllContainmentsCollectionModified(true);
break;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ESuperAdapter.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ESuperAdapter.java
|
Method name: void setFlags(int)
|
|
Method name: void setFlags(int)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | setAllAttributesCollectionModified(true);↵ | | |
|
2 | setAllReferencesCollectionModified(true);↵ | | 1 | setAllReferencesCollectionModified(true);↵
|
3 | setAllStructuralFeaturesCollectionModified(true);↵ | | 2 | setAllStructuralFeaturesCollectionModified(true);↵
|
4 | setAllContainmentsCollectionModified(true);↵ | | 3 | setAllContainmentsCollectionModified(true);↵
|
5 | break; | | 4 | break;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 20 |
-
{Refactorable}
Mapping Summary
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
14 | setAllAttributesCollectionModified(true); | | | |
15 | setAllReferencesCollectionModified(true); | | 9 | setAllReferencesCollectionModified(true); |
16 | setAllStructuralFeaturesCollectionModified(true); | | 10 | setAllStructuralFeaturesCollectionModified(true); |
17 | setAllContainmentsCollectionModified(true); | | 11 | setAllContainmentsCollectionModified(true); |
18 | break; | | 12 | break; |
Precondition Violations (0)
Row |
Violation |