switch (featureID) { case EcorePackage.ETYPE_PARAMETER__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.ETYPE_PARAMETER__EBOUNDS: return ((InternalEList<?>)getEBounds()).basicRemove(otherEnd, 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/ETypeParameterImpl.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.ETYPE_PARAMETER__EANNOTATIONS:
3
      case EcorePackage.EENUM_LITERAL__EANNOTATIONS:
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
5
      case EcorePackage.ETYPE_PARAMETER__EBOUNDS:
5
      case EcorePackage.EENUM_LITERAL__EENUM:
6
        return ((InternalEList<?>)getEBounds()).basicRemove(otherEnd, 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.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    switch (featureID)
    1
    switch (featureID)
    2
    case EcorePackage.ETYPE_PARAMETER__EANNOTATIONS:
    2
    case EcorePackage.ETYPE_PARAMETER__EANNOTATIONS:
    2
    case EcorePackage.EENUM_LITERAL__EANNOTATIONS:
    Differences
    Expression1Expression2Difference
    ETYPE_PARAMETER__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.ETYPE_PARAMETER__EBOUNDS:
    4
    case EcorePackage.ETYPE_PARAMETER__EBOUNDS:
    4
    case EcorePackage.EENUM_LITERAL__EENUM:
    Differences
    Expression1Expression2Difference
    ETYPE_PARAMETER__EBOUNDSEENUM_LITERAL__EENUMVARIABLE_NAME_MISMATCH
    4
    case EcorePackage.EENUM_LITERAL__EENUM:
    5
    return ((InternalEList<?>)getEBounds()).basicRemove(otherEnd, msgs);
    5
    return ((InternalEList<?>)getEBounds()).basicRemove(otherEnd, msgs);
    5
    return eBasicSetContainer(null, EcorePackage.EENUM_LITERAL__EENUM, msgs);
    Differences
    Expression1Expression2Difference
    basicRemoveeBasicSetContainerMETHOD_INVOCATION_NAME_MISMATCH
    ((InternalEList)getEBounds()).basicRemove(otherEnd,msgs)eBasicSetContainer(null,EcorePackage.EENUM_LITERAL__EENUM,msgs)ARGUMENT_NUMBER_MISMATCH
    ((InternalEList)getEBounds())MISSING_METHOD_INVOCATION_EXPRESSION
    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