switch (featureID) { case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: if (resolve) return getIn2out(); return basicGetIn2out(); case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: if (resolve) return getOut2in(); return basicGetOut2in(); } return super.eGet(featureID, resolve, coreType);
switch (featureID) { case MappingPackage.FUNCTION_PAIR__IN2OUT: if (resolve) return getIn2out(); return basicGetIn2out(); case MappingPackage.FUNCTION_PAIR__OUT2IN: if (resolve) return getOut2in(); return basicGetOut2in(); } return super.eGet(featureID, resolve, coreType);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/ComplexTypeConverterImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/FunctionPairImpl.java
Method name: Object eGet(int, boolean, boolean) Method name: Object eGet(int, boolean, boolean)
Number of AST nodes: 10 Number of AST nodes: 10
1
switch (featureID)
1
switch (featureID)
2
    {
2
    {
3
      case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
3
      case MappingPackage.FUNCTION_PAIR__IN2OUT:
4
        if (resolve) return getIn2out();
4
        if (resolve) return getIn2out();
5
        return basicGetIn2out();
5
        return basicGetIn2out();
6
      case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
6
      case MappingPackage.FUNCTION_PAIR__OUT2IN:
7
        if (resolve) return getOut2in();
7
        if (resolve) return getOut2in();
8
        return basicGetOut2in();
8
        return basicGetOut2in();
9
    }
9
    }
10
    return super.eGet(featureID, resolve, coreType);
10
    return super.eGet(featureID, resolve, coreType);
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 comparisons28
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)1.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    switch (featureID)
    1
    switch (featureID)
    2
    case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
    2
    case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
    2
    case MappingPackage.FUNCTION_PAIR__IN2OUT:
    Differences
    Expression1Expression2Difference
    COMPLEX_TYPE_CONVERTER__IN2OUTFUNCTION_PAIR__IN2OUTVARIABLE_NAME_MISMATCH
    2
    case MappingPackage.FUNCTION_PAIR__IN2OUT:
    3
    if (resolve)
    3
    if (resolve)
                                                
    4
    return getIn2out();
    Preondition Violations
    Unmatched return getIn2out();
    4
    return getIn2out();
    4
    return getIn2out();
    4
    return getIn2out();
    Preondition Violations
    Unmatched return getIn2out();
                                                
                                                          
    5
    return basicGetIn2out();
    Preondition Violations
    Unmatched return basicGetIn2out();
    5
    return basicGetIn2out();
    5
    return basicGetIn2out();
    5
    return basicGetIn2out();
    Preondition Violations
    Unmatched return basicGetIn2out();
                                                          
    6
    case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
    6
    case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
    6
    case MappingPackage.FUNCTION_PAIR__OUT2IN:
    Differences
    Expression1Expression2Difference
    COMPLEX_TYPE_CONVERTER__OUT2INFUNCTION_PAIR__OUT2INVARIABLE_NAME_MISMATCH
    6
    case MappingPackage.FUNCTION_PAIR__OUT2IN:
    7
    if (resolve)
    7
    if (resolve)
                                                
    8
    return getOut2in();
    Preondition Violations
    Unmatched return getOut2in();
    8
    return getOut2in();
    8
    return getOut2in();
    8
    return getOut2in();
    Preondition Violations
    Unmatched return getOut2in();
                                                
                                                          
    9
    return basicGetOut2in();
    Preondition Violations
    Unmatched return basicGetOut2in();
    9
    return basicGetOut2in();
    9
    return basicGetOut2in();
    9
    return basicGetOut2in();
    Preondition Violations
    Unmatched return basicGetOut2in();
                                                          
    10
    return super.eGet(featureID, resolve, coreType);
    10
    return super.eGet(featureID, resolve, coreType);
    Precondition Violations (8)
    Row Violation
    1Unmatched return getIn2out();
    2Unmatched return getIn2out();
    3Unmatched return basicGetIn2out();
    4Unmatched return basicGetIn2out();
    5Unmatched return getOut2in();
    6Unmatched return getOut2in();
    7Unmatched return basicGetOut2in();
    8Unmatched return basicGetOut2in();