for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { result.add(entry); } }
for (int i = 0; i < size; ++i) { EAnnotation eAnnotation = eAnnotationArray[i]; if (eAnnotation.getSource() == null) { return eAnnotation; } }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EModelElementImpl.java
Method name: Object[] toArray(EStructuralFeature, boolean) Method name: EAnnotation getEAnnotation(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
for (int i = 0; i < size; ++i)
1
for (int i = 0; i < size; ++i)
2
      {
2
      
3
        Entry entry = entries
3
      {
4
[i];
4
              EAnnotation eAnnotation = eAnnotationArray[i];
5
        if (validator.isValid(entry.getEStructuralFeature()))
5
              if (eAnnotation.getSource() == null)
6
        {
6
         
7
     {
7
          result.add(entry);
8
              
8
        }
9
  return eAnnotation;
10
              }
9
      }
11
            }
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