if (!delegateContains(o)) { return false; }
if (!(commandList.get(i) instanceof AbstractCommand.NonDirtying)) { return true; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStoreEObjectImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/common/command/BasicCommandStack.java
Method name: boolean delegateContainsAll(Collection) Method name: boolean isSaveNeeded()
Number of AST nodes: 2 Number of AST nodes: 2
1
if (!delegateContains(o))
1
if (!(commandList.get(i) instanceof AbstractCommand.NonDirtying))
2
        {
2
        {
3
          return false;
3
          return true;
4
        }
4
        }
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.1
Clones locationClones are in different classes
Number of node comparisons5
  1. {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)2.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    if (!delegateContains(o))
    2
    if (!delegateContains(o))
    8
    if (!(commandList.get(i) instanceof AbstractCommand.NonDirtying))
    Differences
    Expression1Expression2Difference
    delegateContains(o)(commandList.get(i) instanceof AbstractCommand.NonDirtying)TYPE_COMPATIBLE_REPLACEMENT
    8
    if (!(commandList.get(i) instanceof AbstractCommand.NonDirtying))
    3
    return false;
    3
    return false;
    9
    return true;
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    9
    return true;
    Precondition Violations (0)
    Row Violation