if (!haveEqualFeature(eObject1, eObject2, feature)) { return false; }
if (!factory.isFactoryForType(type)) { continue FactoryLoop; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreUtil.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ComposedAdapterFactory.java
Method name: boolean equals(EObject, EObject) Method name: AdapterFactory getFactoryForTypes(Collection)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (!haveEqualFeature(eObject1, eObject2, feature))
1
if (!factory.isFactoryForType(type))
2
          {
2
          {
3
            return false;
3
            continue FactoryLoop;
4
          }
4
          }
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
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)2311.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    23
    if (!haveEqualFeature(eObject1, eObject2, feature))
    23
    if (!haveEqualFeature(eObject1, eObject2, feature))
    11
    if (!factory.isFactoryForType(type))
    Differences
    Expression1Expression2Difference
    haveEqualFeatureisFactoryForTypeMETHOD_INVOCATION_NAME_MISMATCH
    haveEqualFeature(eObject1,eObject2,feature)factory.isFactoryForType(type)ARGUMENT_NUMBER_MISMATCH
    factoryMISSING_METHOD_INVOCATION_EXPRESSION
    11
    if (!factory.isFactoryForType(type))
                                                      
    12
    continue FactoryLoop;
    Preondition Violations
    Unmatched continue FactoryLoop;
    12
    continue FactoryLoop;
    24
    return false;
    24
    return false;
    Preondition Violations
    Unmatched return false;
                                      
    Precondition Violations (2)
    Row Violation
    1Unmatched continue FactoryLoop;
    2Unmatched return false;