g2 = createEGenericType(this.getEObject()); g1.getETypeArguments().add(g2); initEOperation(op, g1); op = addEOperation(eObjectEClass, null, "eAllContents", 0, 1, IS_UNIQUE, IS_ORDERED); g1 = createEGenericType(this.getETreeIterator());
g2 = createEGenericType(this.getEObject()); g1.getETypeArguments().add(g2); initEOperation(op, g1); op = addEOperation(eObjectEClass, null, "eCrossReferences", 0, 1, IS_UNIQUE, IS_ORDERED); g1 = createEGenericType(this.getEEList());
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EcorePackageImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EcorePackageImpl.java
Method name: void initializePackageContents() Method name: void initializePackageContents()
Number of AST nodes: 5 Number of AST nodes: 5
1
g2 = createEGenericType(this.getEObject());
1
g2 = createEGenericType(this.getEObject());
2
    g1.getETypeArguments().add(g2);
2
    g1.getETypeArguments().add(g2);
3
    initEOperation(op, g1);
3
    initEOperation(op, g1);
4
    op = addEOperation(eObjectEClass, null, "eAllContents", 0, 1, IS_UNIQUE, IS_ORDERED);
4
    op = addEOperation(eObjectEClass, null, "eCrossReferences", 0, 1, IS_UNIQUE, IS_ORDERED);
5
    g1 = createEGenericType(this.getETreeIterator());
5
    g1 = createEGenericType(this.getEEList());
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 in the same method
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    118
    g2 = createEGenericType(this.getEObject());
    123
    g2 = createEGenericType(this.getEObject());
    119
    g1.getETypeArguments().add(g2);
    124
    g1.getETypeArguments().add(g2);
    120
    initEOperation(op, g1);
    125
    initEOperation(op, g1);
    121
    op = addEOperation(eObjectEClass, null, "eAllContents", 0, 1, IS_UNIQUE, IS_ORDERED);
    121
    op = addEOperation(eObjectEClass, null, "eAllContents", 0, 1, IS_UNIQUE, IS_ORDERED);
    126
    op = addEOperation(eObjectEClass, null, "eCrossReferences", 0, 1, IS_UNIQUE, IS_ORDERED);
    Differences
    Expression1Expression2Difference
    "eAllContents""eCrossReferences"LITERAL_VALUE_MISMATCH
    126
    op = addEOperation(eObjectEClass, null, "eCrossReferences", 0, 1, IS_UNIQUE, IS_ORDERED);
    122
    g1 = createEGenericType(this.getETreeIterator());
    122
    g1 = createEGenericType(this.getETreeIterator());
    127
    g1 = createEGenericType(this.getEEList());
    Differences
    Expression1Expression2Difference
    getETreeIteratorgetEEListMETHOD_INVOCATION_NAME_MISMATCH
    127
    g1 = createEGenericType(this.getEEList());
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables g1, op , while Clone fragment #2 returns variables g1, op