result.shrink(); eAllReferences = new EcoreEList.UnmodifiableEList.FastCompare<EReference> (this, EcorePackage.eINSTANCE.getEClass_EAllReferences(), 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 getEAllReferences() Method name: EList getEAllOperations()
Number of AST nodes: 2 Number of AST nodes: 2
1
result.shrink();
1
result.shrink();
2
      eAllReferences = 
2
      eAllOperations = 
3
        new EcoreEList.UnmodifiableEList.FastCompare<EReference>
3
        new EcoreEList.UnmodifiableEList.FastCompare<EOperation>
4
          (this, EcorePackage.eINSTANCE.getEClass_EAllReferences(), result.size(), result.data());
4
          (this, EcorePackage.eINSTANCE.getEClass_EAllOperations(), result.size(), result.data());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    15
    result.shrink();
    15
    result.shrink();
    9
    result.shrink();
    Differences
    Expression1Expression2Difference
    org.eclipse.emf.common.util.BasicEListorg.eclipse.emf.common.util.BasicEListVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EReference> of variable result does not match with type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EOperation> of variable result
    • Make classes org.eclipse.emf.common.util.BasicEList and org.eclipse.emf.common.util.BasicEList extend a common superclass
    9
    result.shrink();
                                                                                                                                                                                                                                                                                                                                    
    10
    eAllOperations = new EcoreEList.UnmodifiableEList.FastCompare<EOperation>(this, EcorePackage.eINSTANCE.getEClass_EAllOperations(), result.size(), result.data());
    16
    eAllReferences = new EcoreEList.UnmodifiableEList.FastCompare<EReference>(this, EcorePackage.eINSTANCE.getEClass_EAllReferences(), result.size(), result.data());
                                                                                                                                                                                                                                                                                                                                    
    Precondition Violations (1)
    Row Violation
    1Type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EReference> of variable result does not match with type org.eclipse.emf.common.util.BasicEList<org.eclipse.emf.ecore.EOperation> of variable result