if (group == eStructuralFeature) { groupMembers.add(feature); }
if (eAllStructuralFeaturesData[index] == feature) { return index; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/FeatureMapUtil.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
Method name: void BasicValidator(EClass, EStructuralFeature) Method name: int getFeatureID(EStructuralFeature)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (group == eStructuralFeature)
1
if (eAllStructuralFeature
2
            {
3
              groupMembers.add(feature);
4
    
2
sData[index] == feature)
3
        {
4
          return index;
5
        }
5
        }
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.2
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    31
    if (group == eStructuralFeature)
    31
    if (group == eStructuralFeature)
    5
    if (eAllStructuralFeaturesData[index] == feature)
    Differences
    Expression1Expression2Difference
    groupeAllStructuralFeaturesData[index]TYPE_COMPATIBLE_REPLACEMENT
    eStructuralFeaturefeatureVARIABLE_NAME_MISMATCH
    5
    if (eAllStructuralFeaturesData[index] == feature)
                                    
    6
    return index;
    Preondition Violations
    Unmatched return index;
    6
    return index;
    32
    groupMembers.add(feature);
                                                                
    Precondition Violations (1)
    Row Violation
    1Unmatched return index;