if (mappings.contains(parent)) { continue LOOP; }
if (!factory.isFactoryForType(type)) { continue FactoryLoop; }
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/edit/provider/ComposedAdapterFactory.java
Method name: void run() Method name: AdapterFactory getFactoryForTypes(Collection)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (mappings.contains(parent))
1
if (
2
      
2
!factory.isFactoryForType(type))
3
          {
3
          {
4
                  continue LOOP;
4
            continue 
5
      
5
FactoryLoop;
6
          }
6
          }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)742.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    17
    if (mappings.contains(parent))
    17
    if (mappings.contains(parent))
    11
    if (!factory.isFactoryForType(type))
    Differences
    Expression1Expression2Difference
    mappings.contains(parent)!factory.isFactoryForType(type)TYPE_COMPATIBLE_REPLACEMENT
    11
    if (!factory.isFactoryForType(type))
    18
    continue LOOP;
    18
    continue LOOP;
    12
    continue FactoryLoop;
    Preondition Violations
    Statement continue LOOP; without innermost loop
    Statement continue FactoryLoop; without innermost loop
    12
    continue FactoryLoop;
    Precondition Violations (2)
    Row Violation
    1Statement continue LOOP; without innermost loop
    2Statement continue FactoryLoop; without innermost loop