case EcorePackage.ECLASS__EPACKAGE: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.ECLASS__EPACKAGE, msgs);
case EcorePackage.EPACKAGE__ESUPER_PACKAGE: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs);
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/EPackageImpl.java
Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain) Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain)
Number of AST nodes: 4 Number of AST nodes: 4
1
case EcorePackage.ECLASS__EPACKAGE:
1
case EcorePackage.EPACKAGE__ESUPER_PACKAGE:
2
        if (eInternalContainer() != null)
2
        if (eInternalContainer() != null)
3
          msgs = eBasicRemoveFromContainer(msgs);
3
          msgs = eBasicRemoveFromContainer(msgs);
4
        return eBasicSetContainer(otherEnd, EcorePackage.ECLASS__EPACKAGE, msgs);
4
        return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    case EcorePackage.ECLASS__EPACKAGE:
    4
    case EcorePackage.ECLASS__EPACKAGE:
    12
    case EcorePackage.EPACKAGE__ESUPER_PACKAGE:
    Differences
    Expression1Expression2Difference
    ECLASS__EPACKAGEEPACKAGE__ESUPER_PACKAGEVARIABLE_NAME_MISMATCH
    12
    case EcorePackage.EPACKAGE__ESUPER_PACKAGE:
    5
    if (eInternalContainer() != null)
    13
    if (eInternalContainer() != null)
    6
    msgs = eBasicRemoveFromContainer(msgs);
    14
    msgs = eBasicRemoveFromContainer(msgs);
    7
    return eBasicSetContainer(otherEnd, EcorePackage.ECLASS__EPACKAGE, msgs);
    7
    return eBasicSetContainer(otherEnd, EcorePackage.ECLASS__EPACKAGE, msgs);
    15
    return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs);
    Differences
    Expression1Expression2Difference
    ECLASS__EPACKAGEEPACKAGE__ESUPER_PACKAGEVARIABLE_NAME_MISMATCH
    15
    return eBasicSetContainer(otherEnd, EcorePackage.EPACKAGE__ESUPER_PACKAGE, msgs);
    Precondition Violations (0)
    Row Violation