for (Diagnostic child : diagnostic.getChildren()) { add(child); }
for (Object value : (Collection<?>)newValue) { viewer.insert(value, index++); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicDiagnostic.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/NotifyChangedToViewerRefresh.java
Method name: void addAll(Diagnostic) Method name: void refreshTableViewer(TableViewer, Object, int, Object, Object, Object, int)
Number of AST nodes: 2 Number of AST nodes: 2
1
for (Diagnostic child : diagnostic.getChildren())
1
for (
2
Object value : (Collection<?>)newValue)
2
    {
3
          {
3
      add(child);
4
        
5
    viewer.insert(value, index++);
4
    }
6
          }
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