case EcorePackage.ECLASSIFIER__EPACKAGE: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
case EcorePackage.EOPERATION__ECONTAINING_CLASS: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, EcorePackage.EOPERATION__ECONTAINING_CLASS, msgs);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassifierImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.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.ECLASSIFIER__EPACKAGE:
1
case EcorePackage.EOPERATION__ECONTAINING_CLASS:
2
        if (eInternalContainer() != null)
2
        if (eInternalContainer() != null)
3
          msgs = eBasicRemoveFromContainer(msgs);
3
          msgs = eBasicRemoveFromContainer(msgs);
4
        return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
4
        return eBasicSetContainer(otherEnd, EcorePackage.EOPERATION__ECONTAINING_CLASS, 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.1
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)0.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    case EcorePackage.ECLASSIFIER__EPACKAGE:
    4
    case EcorePackage.ECLASSIFIER__EPACKAGE:
    4
    case EcorePackage.EOPERATION__ECONTAINING_CLASS:
    Differences
    Expression1Expression2Difference
    ECLASSIFIER__EPACKAGEEOPERATION__ECONTAINING_CLASSVARIABLE_NAME_MISMATCH
    4
    case EcorePackage.EOPERATION__ECONTAINING_CLASS:
    5
    if (eInternalContainer() != null)
    5
    if (eInternalContainer() != null)
    6
    msgs = eBasicRemoveFromContainer(msgs);
    6
    msgs = eBasicRemoveFromContainer(msgs);
    7
    return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
    7
    return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
    7
    return eBasicSetContainer(otherEnd, EcorePackage.EOPERATION__ECONTAINING_CLASS, msgs);
    Differences
    Expression1Expression2Difference
    ECLASSIFIER__EPACKAGEEOPERATION__ECONTAINING_CLASSVARIABLE_NAME_MISMATCH
    7
    return eBasicSetContainer(otherEnd, EcorePackage.EOPERATION__ECONTAINING_CLASS, msgs);
    Precondition Violations (0)
    Row Violation