Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { if (entry.getValue() == null) { match = entry; break; } ++count; }
Entry entry = entries[i]; 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/DelegatingFeatureMap.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java
Method name: NotificationChain basicRemove(EStructuralFeature, Object, NotificationChain) Method name: NotificationChain basicRemove(EStructuralFeature, Object, NotificationChain)
Number of AST nodes: 6 Number of AST nodes: 6
1
Entry entry = delegateGet(i);
1
Entry entry = entries[i];
2
        if (validator.isValid(entry.getEStructuralFeature()))
2
        if (validator.isValid(entry.getEStructuralFeature()))
3
        {
3
        {
4
          if (entry.getValue() == null)
4
          if (entry.getValue() == null)
5
          {
5
          {
6
            match = entry;
6
            match = entry;
7
            break;
7
            break;
8
          }
8
          }
9
          ++count;
9
          ++count;
10
        }
10
        }
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.3
Clones locationClones are in different classes having the same super class
Number of node comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    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.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    21
    Entry entry = delegateGet(i);
    21
    Entry entry = delegateGet(i);
    22
    Entry entry = entries[i];
    Differences
    Expression1Expression2Difference
    delegateGet(i)entries[i]TYPE_COMPATIBLE_REPLACEMENT
    22
    Entry entry = entries[i];
    22
    if (validator.isValid(entry.getEStructuralFeature()))
    23
    if (validator.isValid(entry.getEStructuralFeature()))
    23
    if (entry.getValue() == null)
    24
    if (entry.getValue() == null)
    24
    match = entry;
    25
    match = entry;
    25
    break;
    25
    break;
    26
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    26
    break;
    26
    ++count;
    27
    ++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