if (!basicContains(feature, object)) { return false; }
if (collection.contains(entry.getValue())) { entryCollection.add(entry); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java
Method name: boolean basicContainsAll(EStructuralFeature, Collection) Method name: boolean removeAll(EStructuralFeature, Collection)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (!basicContains(feature, object))
1
if (collection.contains(entry.getValue()))
2
      {
2
          {
3
        return false;
3
        
4
    entryCollection.add(entry);
4
      }
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.1
Clones locationClones are declared in the same class
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)964.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    if (!basicContains(feature, object))
    2
    if (!basicContains(feature, object))
    8
    if (collection.contains(entry.getValue()))
    Differences
    Expression1Expression2Difference
    !basicContains(feature,object)collection.contains(entry.getValue())TYPE_COMPATIBLE_REPLACEMENT
    8
    if (collection.contains(entry.getValue()))
    3
    return false;
    3
    return false;
    Preondition Violations
    Unmatched return false;
                                    
                                                                
    9
    entryCollection.add(entry);
    Precondition Violations (1)
    Row Violation
    1Unmatched return false;