Collection<? extends Mapping> mappings = mappingRoot.getMappings(o); for (Mapping mapping : mappings) { mappedObjects.addAll(getSecondaryMappedObjects(mapping)); }
Collection<? extends Mapping> mappings = mappingRoot.getMappings(o); for (Mapping mapping : mappings) { mappedObjects.addAll(getSecondaryMappedObjects(mapping)); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java
Method name: Object getColumnImage(Object, int) Method name: String getColumnText(Object, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
Collection<? extends Mapping> mappings = mappingRoot.getMappings(o);
1
Collection<? extends Mapping> mappings = mappingRoot.getMappings(o);
2
              for (Mapping mapping : mappings)
2
              for (Mapping mapping : mappings)
3
              {
3
              {
4
                mappedObjects.addAll(getSecondaryMappedObjects(mapping));
4
                mappedObjects.addAll(getSecondaryMappedObjects(mapping));
5
              }
5
              }
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 declared in the same class
Number of node comparisons1