result.shrink();
eAllAttributes =
new EcoreEList.UnmodifiableEList.FastCompare<EAttribute>
(this, EcorePackage.eINSTANCE.getEClass_EAllAttributes(), result.size(), result.data());
result.shrink();
eAllOperations =
new EcoreEList.UnmodifiableEList.FastCompare<EOperation>
(this, EcorePackage.eINSTANCE.getEClass_EAllOperations(), result.size(), result.data());
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
|
Method name: EList getEAllAttributes()
|
|
Method name: EList getEAllOperations()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | result.shrink();↵ | | 1 | result.shrink();↵
|
2 | eAllAttributes = ↵ | | 2 | eAllOperations = ↵
|
3 | new EcoreEList.UnmodifiableEList.FastCompare<EAttribute>↵ | | 3 | new EcoreEList.UnmodifiableEList.FastCompare<EOperation>↵
|
4 | (this, EcorePackage.eINSTANCE.getEClass_EAllAttributes(), result.size(), result.data()); | | 4 | (this, EcorePackage.eINSTANCE.getEClass_EAllOperations(), result.size(), result.data());
|
See real code fragment |
|
See real code fragment |
Summary
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 | 4 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
16 | result.shrink(); | | 9 | result.shrink(); |
| | | 10 | eAllOperations = new EcoreEList.UnmodifiableEList.FastCompare<EOperation>(this, EcorePackage.eINSTANCE.getEClass_EAllOperations(), result.size(), result.data()); |
17 | eAllAttributes = new EcoreEList.UnmodifiableEList.FastCompare<EAttribute>(this, EcorePackage.eINSTANCE.getEClass_EAllAttributes(), result.size(), result.data()); | | | |
Precondition Violations (1)
Row |
Violation |
1 | Type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EAttribute> of variable result does not match with type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EOperation> of variable result |