if (validator.isValid(entry.getEStructuralFeature())) { if (entry.getValue() == null) { match = entry; break; } ++count; }
if (validator.isValid(entry.getEStructuralFeature())) { if (entry.getValue() == null) { match = entry; break; } ++count; }
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: NotificationChain basicRemove(EStructuralFeature, Object, NotificationChain) Method name: NotificationChain basicRemove(EStructuralFeature, Object, NotificationChain)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (validator.isValid(entry.getEStructuralFeature()))
1
if (validator.isValid(entry.getEStructuralFeature()))
2
        {
2
        {
3
          if (entry.getValue() == null)
3
          if (entry.getValue() == null)
4
          {
4
          {
5
            match = entry;
5
            match = entry;
6
            break;
6
            break;
7
          }
7
          }
8
          ++count;
8
          ++count;
9
        }
9
        }
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.4
Clones locationClones are in different classes having the same super class
Number of node comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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.7
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    23
    if (validator.isValid(entry.getEStructuralFeature()))
    22
    if (validator.isValid(entry.getEStructuralFeature()))
    24
    if (entry.getValue() == null)
    23
    if (entry.getValue() == null)
    25
    match = entry;
    24
    match = entry;
    26
    break;
    26
    break;
    25
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    25
    break;
    27
    ++count;
    26
    ++count;
    Precondition Violations (3)
    Row Violation
    1Statement break; without innermost loop
    2Statement break; without innermost loop
    3Clone fragment #1 returns variables match, count , while Clone fragment #2 returns variables match, count