ds.setIncludes(new String[] {"alpha/beta/gamma/GAMMA.XML"}); ds.scan(); compareFiles(ds, new String[] {}, new String[] {});
ds.setIncludes(new String[] {"alpha/"}); ds.scan(); compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java
Method name: void testFullPathMatchesCaseSensitive() Method name: void test2()
Number of AST nodes: 3 Number of AST nodes: 3
1
ds.setIncludes(new String[] {"alpha/beta/gamma/GAMMA.XML"});
1
ds.setIncludes(new String[] {"alpha/"});
2
                ds.scan();
2
                ds.scan();
3
                compareFiles(ds, new String[] {}, new String[] {
3
                compareFiles(ds, new String[] {"alpha/beta/beta.xml",
4
                                               "alpha/beta/gamma/gamma.xml"},
4
});
5
                    new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
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.0
Clones locationClones are declared in the same class
Number of node comparisons9
  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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    5
    ds.setIncludes(new String[] {"alpha/beta/gamma/GAMMA.XML"});
    5
    ds.setIncludes(new String[] {"alpha/beta/gamma/GAMMA.XML"});
    5
    ds.setIncludes(new String[] {"alpha/"});
    Differences
    Expression1Expression2Difference
    "alpha/beta/gamma/GAMMA.XML""alpha/"LITERAL_VALUE_MISMATCH
    5
    ds.setIncludes(new String[] {"alpha/"});
    6
    ds.scan();
    6
    ds.scan();
    7
    compareFiles(ds, new String[] {}, new String[] {});
    7
    compareFiles(ds, new String[] {}, new String[] {});
    7
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    Differences
    Expression1Expression2Difference
    {}{"alpha/beta/beta.xml","alpha/beta/gamma/gamma.xml"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {}{"alpha/beta/beta.xml","alpha/beta/gamma/gamma.xml"}ARRAY_INITIALIZER_MISMATCH
    {}{"alpha","alpha/beta","alpha/beta/gamma"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {}{"alpha","alpha/beta","alpha/beta/gamma"}ARRAY_INITIALIZER_MISMATCH
    7
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    Precondition Violations (0)
    Row Violation