if (eStructuralFeature instanceof EReference) { EReference eReference = (EReference)eStructuralFeature; return !eReference.isContainment() && !eReference.isContainer(); } else { return false; }
if (that instanceof URLImageDescriptor) { URLImageDescriptor otherURLImageDescriptor = (URLImageDescriptor)that; return url.equals(otherURLImageDescriptor.url) && (key1 == null ? otherURLImageDescriptor.key1 == null : key1.equals(otherURLImageDescriptor.key1)) && (key2 == null ? otherURLImageDescriptor.key2 == null : key2.equals(otherURLImageDescriptor.key2)); } else { return false; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceEList.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java
Method name: boolean isIncludedEntry(EStructuralFeature) Method name: boolean equals(Object)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (eStructuralFeature instanceof EReference)
1
if (
2
    {
3
      EReference eReference = (EReference)eStructuralFeature;
4
      return !eReference.isContainment() && !eReference.isContainer(
2
that instanceof URLImageDescriptor)
3
    {
4
      URLImageDescriptor otherURLImageDescriptor = (URLImageDescriptor)that;
5
      return 
6
        url.equals(otherURLImageDescriptor.url) &&
7
          (key1 == null ? otherURLImageDescriptor.key1 == null : key1.equals(otherURLImageDescriptor.key1)) &&
5
);
8
          (key2 == null ? otherURLImageDescriptor.key2 == null : key2.equals(otherURLImageDescriptor.key2));
6
    }
9
    }
7
    else
10
    else
8
    {
11
    {
9
      return false;
12
      return false;
10
    }
13
    }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1