if (index < 0 || index > size()) throw new BasicIndexOutOfBoundsException(index, size); return new EListIterator<E>(index);
if (index < 0 || index > size()) throw new BasicIndexOutOfBoundsException(index, size); return new NonResolvingEListIterator<E>(index);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
Method name: ListIterator listIterator(int) Method name: ListIterator basicListIterator(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (index < 0 || index > size())
1
if (index < 0 || index > size())
2
      throw new BasicIndexOutOfBoundsException(index, size);
2
      throw new BasicIndexOutOfBoundsException(index, size);
3
    return new EListIterator<E>(index);
3
    return new NonResolvingEListIterator<E>(index);
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.2
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (index < 0 || index > size())
    1
    if (index < 0 || index > size())
    2
    throw new BasicIndexOutOfBoundsException(index, size);
    2
    throw new BasicIndexOutOfBoundsException(index, size);
    3
    return new EListIterator<E>(index);
    3
    return new EListIterator<E>(index);
    3
    return new NonResolvingEListIterator<E>(index);
    Differences
    Expression1Expression2Difference
    org.eclipse.emf.common.util.BasicEList.EListIteratororg.eclipse.emf.common.util.BasicEList.NonResolvingEListIteratorSUBCLASS_TYPE_MISMATCH
    3
    return new NonResolvingEListIterator<E>(index);
    Precondition Violations (0)
    Row Violation