switch (featureID) { case EcorePackage.EFACTORY__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.EFACTORY__EPACKAGE: return basicSetEPackage(null, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs);
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);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EFactoryImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypedElementImpl.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.EFACTORY__EANNOTATIONS:
3
      case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
5
      case EcorePackage.EFACTORY__EPACKAGE:
5
      case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
6
        return basicSetEPackage(null, msgs);
6
        return basicUnsetEGenericType(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.0
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.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    switch (featureID)
    1
    switch (featureID)
    2
    case EcorePackage.EFACTORY__EANNOTATIONS:
    2
    case EcorePackage.EFACTORY__EANNOTATIONS:
    2
    case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
    Differences
    Expression1Expression2Difference
    EFACTORY__EANNOTATIONSETYPED_ELEMENT__EANNOTATIONSVARIABLE_NAME_MISMATCH
    2
    case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    4
    case EcorePackage.EFACTORY__EPACKAGE:
    4
    case EcorePackage.EFACTORY__EPACKAGE:
    4
    case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
    Differences
    Expression1Expression2Difference
    EFACTORY__EPACKAGEETYPED_ELEMENT__EGENERIC_TYPEVARIABLE_NAME_MISMATCH
    4
    case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
    5
    return basicSetEPackage(null, msgs);
    5
    return basicSetEPackage(null, msgs);
    5
    return basicUnsetEGenericType(msgs);
    Differences
    Expression1Expression2Difference
    basicSetEPackagebasicUnsetEGenericTypeMETHOD_INVOCATION_NAME_MISMATCH
    basicSetEPackage(null,msgs)basicUnsetEGenericType(msgs)ARGUMENT_NUMBER_MISMATCH
    5
    return basicUnsetEGenericType(msgs);
    6
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    6
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    Precondition Violations (0)
    Row Violation