if (bIt.hasNext()) { bVal = (Comparable) bIt.next(); } else { return; }
if (aIt.hasNext()) { aVal = (Comparable) aIt.next(); } else { return; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/ListTools.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/ListTools.java
Method name: void substract(List, List) Method name: void substract(List, List)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (bIt.hasNext()) {
1
if (aIt.hasNext()) {
2
		    bVal = (Comparable) bIt.next();
2
		    aVal = (Comparable) aIt.next();
3
		} else {
3
		} else {
4
		    return;
4
		    return;
5
		}
5
		}
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.2
Clones locationClones are in the same method
Number of node comparisons10
  1. {Non-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)3.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    29
    if (bIt.hasNext())
    29
    if (bIt.hasNext())
    18
    if (aIt.hasNext())
    Differences
    Expression1Expression2Difference
    bItaItVARIABLE_NAME_MISMATCH
    18
    if (aIt.hasNext())
    30
    bVal = (Comparable)bIt.next();
    30
    bVal = (Comparable)bIt.next();
    19
    aVal = (Comparable)aIt.next();
    Differences
    Expression1Expression2Difference
    bValaValVARIABLE_NAME_MISMATCH
    bItaItVARIABLE_NAME_MISMATCH
    19
    aVal = (Comparable)aIt.next();
    else
    else
    31
    return;
    31
    return;
    20
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    20
    return;
    Precondition Violations (2)
    Row Violation
    1Conditional return;
    2Conditional return;