switch (featureID) { case EcorePackage.EPARAMETER__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.EPARAMETER__EGENERIC_TYPE: return basicUnsetEGenericType(msgs); case EcorePackage.EPARAMETER__EOPERATION: return eBasicSetContainer(null, EcorePackage.EPARAMETER__EOPERATION, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs);
switch (featureID) { case EcorePackage.ECLASSIFIER__EANNOTATIONS: return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs); case EcorePackage.ECLASSIFIER__EPACKAGE: return eBasicSetContainer(null, EcorePackage.ECLASSIFIER__EPACKAGE, msgs); case EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS: return ((InternalEList<?>)getETypeParameters()).basicRemove(otherEnd, 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/EParameterImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassifierImpl.java
Method name: NotificationChain eInverseRemove(InternalEObject, int, NotificationChain) Method name: NotificationChain eInverseRemove(InternalEObject, int, NotificationChain)
Number of AST nodes: 8 Number of AST nodes: 8
1
switch (featureID)
1
switch (featureID)
2
    {
2
    {
3
      case EcorePackage.EPARAMETER__EANNOTATIONS:
3
      case EcorePackage.ECLASSIFIER__EANNOTATIONS:
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
4
        return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
5
      case EcorePackage.EPARAMETER__EGENERIC_TYPE:
5
      case EcorePackage.ECLASSIFIER__EPACKAGE:
6
        return basicUnsetEGenericType(msgs);
6
        return eBasicSetContainer(null, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
7
      case EcorePackage.EPARAMETER__EOPERATION:
7
      case EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS:
8
        return eBasicSetContainer(null, EcorePackage.EPARAMETER__EOPERATION, msgs);
8
        return ((InternalEList<?>)getETypeParameters()).basicRemove(otherEnd, msgs);
9
    }
9
    }
10
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
10
    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 comparisons26
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    switch (featureID)
    1
    switch (featureID)
    2
    case EcorePackage.EPARAMETER__EANNOTATIONS:
    2
    case EcorePackage.EPARAMETER__EANNOTATIONS:
    2
    case EcorePackage.ECLASSIFIER__EANNOTATIONS:
    Differences
    Expression1Expression2Difference
    EPARAMETER__EANNOTATIONSECLASSIFIER__EANNOTATIONSVARIABLE_NAME_MISMATCH
    2
    case EcorePackage.ECLASSIFIER__EANNOTATIONS:
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    3
    return ((InternalEList<?>)getEAnnotations()).basicRemove(otherEnd, msgs);
    4
    case EcorePackage.EPARAMETER__EGENERIC_TYPE:
    4
    case EcorePackage.EPARAMETER__EGENERIC_TYPE:
    4
    case EcorePackage.ECLASSIFIER__EPACKAGE:
    Differences
    Expression1Expression2Difference
    EPARAMETER__EGENERIC_TYPEECLASSIFIER__EPACKAGEVARIABLE_NAME_MISMATCH
    4
    case EcorePackage.ECLASSIFIER__EPACKAGE:
    5
    return basicUnsetEGenericType(msgs);
    5
    return basicUnsetEGenericType(msgs);
    5
    return eBasicSetContainer(null, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
    Differences
    Expression1Expression2Difference
    basicUnsetEGenericTypeeBasicSetContainerMETHOD_INVOCATION_NAME_MISMATCH
    basicUnsetEGenericType(msgs)eBasicSetContainer(null,EcorePackage.ECLASSIFIER__EPACKAGE,msgs)ARGUMENT_NUMBER_MISMATCH
    5
    return eBasicSetContainer(null, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);
    6
    case EcorePackage.EPARAMETER__EOPERATION:
    6
    case EcorePackage.EPARAMETER__EOPERATION:
    6
    case EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS:
    Differences
    Expression1Expression2Difference
    EPARAMETER__EOPERATIONECLASSIFIER__ETYPE_PARAMETERSVARIABLE_NAME_MISMATCH
    6
    case EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS:
    7
    return eBasicSetContainer(null, EcorePackage.EPARAMETER__EOPERATION, msgs);
    7
    return eBasicSetContainer(null, EcorePackage.EPARAMETER__EOPERATION, msgs);
    7
    return ((InternalEList<?>)getETypeParameters()).basicRemove(otherEnd, msgs);
    Differences
    Expression1Expression2Difference
    eBasicSetContainerbasicRemoveMETHOD_INVOCATION_NAME_MISMATCH
    eBasicSetContainer(null,EcorePackage.EPARAMETER__EOPERATION,msgs)((InternalEList)getETypeParameters()).basicRemove(otherEnd,msgs)ARGUMENT_NUMBER_MISMATCH
    ((InternalEList)getETypeParameters())MISSING_METHOD_INVOCATION_EXPRESSION
    7
    return ((InternalEList<?>)getETypeParameters()).basicRemove(otherEnd, msgs);
    8
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    8
    return eDynamicInverseRemove(otherEnd, featureID, msgs);
    Precondition Violations (0)
    Row Violation