if (otherEObject == eObject) { break; } if (otherEObject instanceof EAnnotation) { EAnnotation otherEAnnotation = (EAnnotation)otherEObject; if (source.equals(otherEAnnotation.getSource())) { ++count; } }
if (otherEObject == eObject) { break; } if (otherEObject instanceof ENamedElement) { ENamedElement otherENamedElement = (ENamedElement)otherEObject; if (name.equals(otherENamedElement.getName())) { ++count; } }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EModelElementImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EModelElementImpl.java
Method name: String eURIFragmentSegment(EStructuralFeature, EObject) Method name: String eURIFragmentSegment(EStructuralFeature, EObject)
Number of AST nodes: 6 Number of AST nodes: 6
1
if (otherEObject == eObject)
1
if (otherEObject == eObject)
2
          {
2
          {
3
            break;
3
            break;
4
          }
4
          }
5
          if (otherEObject instanceof EAnnotation)
5
          if (otherEObject instanceof ENamedElement)
6
          {
6
          {
7
            EAnnotation otherEAnnotation = (EAnnotation)otherEObject;
7
            ENamedElement otherENamedElement = (ENamedElement)otherEObject;
8
            if (source.equals(otherEAnnotation.getSource()))
8
            if (name.equals(otherENamedElement.getName()))
9
            {
9
            {
10
              ++count;
10
              ++count;
11
            }
11
            }
12
          }
12
          }
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 the same method
Number of node comparisons1