List<Object> list = list(feature); list.clear(); list.addAll((Collection<?>)object);
List<Object> list = list(feature); list.clear(); list.addAll((Collection<?>)object);
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/util/DelegatingFeatureMap.java
Method name: void set(EStructuralFeature, Object) Method name: void set(EStructuralFeature, Object)
Number of AST nodes: 3 Number of AST nodes: 3
1
List<Object> list = list(feature);
1
List<Object> list = list(feature);
2
      list.clear();
2
      list.clear();
3
      list.addAll((Collection<?>)object);
3
      list.addAll((Collection<?>)object);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    2
    List<Object> list = list(feature);
    2
    List<Object> list = list(feature);
    3
    list.clear();
    3
    list.clear();
    4
    list.addAll((Collection<?>)object);
    4
    list.addAll((Collection<?>)object);
    Precondition Violations (0)
    Row Violation