case MappingPackage.MAPPING_HELPER__MAPPER: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetMapper((Mapping)otherEnd, msgs);
case MappingPackage.MAPPING__NESTED_IN: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetNestedIn((Mapping)otherEnd, msgs);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.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 MappingPackage.MAPPING_HELPER__MAPPER:
1
case MappingPackage.MAPPING__NESTED_IN:
2
        if (eInternalContainer() != null)
2
        if (eInternalContainer() != null)
3
          msgs = eBasicRemoveFromContainer(msgs);
3
          msgs = eBasicRemoveFromContainer(msgs);
4
        return basicSetMapper((Mapping)otherEnd, msgs);
4
        return basicSetNestedIn((Mapping)otherEnd, msgs);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
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. {Non-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
    2
    case MappingPackage.MAPPING_HELPER__MAPPER:
    2
    case MappingPackage.MAPPING_HELPER__MAPPER:
    8
    case MappingPackage.MAPPING__NESTED_IN:
    Differences
    Expression1Expression2Difference
    MAPPING_HELPER__MAPPERMAPPING__NESTED_INVARIABLE_NAME_MISMATCH
    8
    case MappingPackage.MAPPING__NESTED_IN:
    3
    if (eInternalContainer() != null)
    9
    if (eInternalContainer() != null)
    4
    msgs = eBasicRemoveFromContainer(msgs);
    10
    msgs = eBasicRemoveFromContainer(msgs);
    5
    return basicSetMapper((Mapping)otherEnd, msgs);
    5
    return basicSetMapper((Mapping)otherEnd, msgs);
    11
    return basicSetNestedIn((Mapping)otherEnd, msgs);
    Differences
    Expression1Expression2Difference
    basicSetMapperbasicSetNestedInMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression basicSetMapper((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression basicSetNestedIn((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11
    return basicSetNestedIn((Mapping)otherEnd, msgs);
    Precondition Violations (2)
    Row Violation
    1Expression basicSetMapper((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression basicSetNestedIn((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted