switch (featureID) { case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE: return basicUnsetEGenericType(msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs);
switch (featureID) { case EcorePackage.EENUM_LITERAL__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.EENUM_LITERAL__EENUM: return eBasicSetContainer(null, EcorePackage.EENUM_LITERAL__EENUM, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypedElementImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EEnumLiteralImpl.java
Method name: NotificationChain eInverseRemove(InternalEObject, int, NotificationChain) Method name: NotificationChain eInverseRemove(InternalEObject, int, NotificationChain)
Number of AST nodes: 6 Number of AST nodes: 6
1
switch (featureID)
1
switch (featureID)
2
    {
2
    {
3
      case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
3
      case EcorePackage.EENUM_LITERAL__EANNOTATIONS:
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
5
      case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
5
      case EcorePackage.EENUM_LITERAL__EENUM:
6
        return basicUnsetEGenericType(msgs);
6
        return eBasicSetContainer(null, EcorePackage.EENUM_LITERAL__EENUM, msgs);
7
    }
7
    }
8
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
8
    return eDynamicInverseRemove(otherEnd, featureID, 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 comparisons14
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    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.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    switch (featureID)
    1
    switch (featureID)
    2
    case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
    2
    case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
    2
    case EcorePackage.EENUM_LITERAL__EANNOTATIONS:
    Differences
    Expression1Expression2Difference
    ETYPED_ELEMENT__EANNOTATIONSEENUM_LITERAL__EANNOTATIONSVARIABLE_NAME_MISMATCH
    2
    case EcorePackage.EENUM_LITERAL__EANNOTATIONS:
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    4
    case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
    4
    case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
    4
    case EcorePackage.EENUM_LITERAL__EENUM:
    Differences
    Expression1Expression2Difference
    ETYPED_ELEMENT__EGENERIC_TYPEEENUM_LITERAL__EENUMVARIABLE_NAME_MISMATCH
    4
    case EcorePackage.EENUM_LITERAL__EENUM:
    5
    return basicUnsetEGenericType(msgs);
    5
    return basicUnsetEGenericType(msgs);
    5
    return eBasicSetContainer(null, EcorePackage.EENUM_LITERAL__EENUM, msgs);
    Differences
    Expression1Expression2Difference
    basicUnsetEGenericTypeeBasicSetContainerMETHOD_INVOCATION_NAME_MISMATCH
    basicUnsetEGenericType(msgs)eBasicSetContainer(null,EcorePackage.EENUM_LITERAL__EENUM,msgs)ARGUMENT_NUMBER_MISMATCH
    5
    return eBasicSetContainer(null, EcorePackage.EENUM_LITERAL__EENUM, msgs);
    6
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    6
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    Precondition Violations (0)
    Row Violation