if (size < 2) { throw new BuildException("The difference of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined."); }
if (size < 2) { throw new BuildException("The intersection of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined."); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Difference.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Intersect.java
Method name: Collection getCollection() Method name: Collection getCollection()
Number of AST nodes: 2 Number of AST nodes: 2
1
if (size < 2) {
1
if (size < 2) {
2
            throw new BuildException("The difference of " + size
2
            throw new BuildException("The intersection of " + size
3
                + " resource collection" + ((size == 1) ? "" : "s")
3
                + " resource collection" + ((size == 1) ? "" : "s")
4
                + " is undefined.");
4
                + " is undefined.");
5
        }
5
        }
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 having the same super class
Number of node comparisons4
  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)0.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    if (size < 2)
    3
    if (size < 2)
    4
    throw new BuildException("The difference of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined.");
    4
    throw new BuildException("The difference of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined.");
    4
    throw new BuildException("The intersection of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined.");
    Differences
    Expression1Expression2Difference
    "The difference of ""The intersection of "LITERAL_VALUE_MISMATCH
    4
    throw new BuildException("The intersection of " + size + " resource collection" + ((size == 1) ? "" : "s") + " is undefined.");
    Precondition Violations (0)
    Row Violation