ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setIncludes(new String[] {"alpha"}); ds.scan(); compareFiles(ds, new String[] {} ,new String[] {"alpha"});
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setIncludes(new String[] { "alpha/beta/gamma/gamma.xml", "alpha/beta/gamma/GAMMA.XML" }); ds.scan(); compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"}, new String[] {});
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 test1() Method name: void testFullpathDiffersInCaseScanningSensitive()
Number of AST nodes: 4 Number of AST nodes: 4
1
ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
1
ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
2
                ds.setIncludes(new String[] {"alpha"});
2
        ds.setIncludes(new String[] {
3
            "alpha/beta/gamma/gamma.xml",
4
            "alpha/beta/gamma/GAMMA.XML"
3
        
5
        });
4
        ds.scan();
6
        ds.scan();
5
                compareFiles(ds, new String[] {} ,
7
        compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},
6
new String[] {"alpha"});
8
                     new String[] {});
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 comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    4
    ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
    6
    ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
    5
    ds.setIncludes(new String[] {"alpha"});
    5
    ds.setIncludes(new String[] {"alpha"});
    7
    ds.setIncludes(new String[] {"alpha/beta/gamma/gamma.xml", "alpha/beta/gamma/GAMMA.XML"});
    Differences
    Expression1Expression2Difference
    {"alpha"}{"alpha/beta/gamma/gamma.xml","alpha/beta/gamma/GAMMA.XML"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {"alpha"}{"alpha/beta/gamma/gamma.xml","alpha/beta/gamma/GAMMA.XML"}ARRAY_INITIALIZER_MISMATCH
    7
    ds.setIncludes(new String[] {"alpha/beta/gamma/gamma.xml", "alpha/beta/gamma/GAMMA.XML"});
    6
    ds.scan();
    8
    ds.scan();
    7
    compareFiles(ds, new String[] {}, new String[] {"alpha"});
    7
    compareFiles(ds, new String[] {}, new String[] {"alpha"});
    9
    compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"}, new String[] {});
    Differences
    Expression1Expression2Difference
    {}{"alpha/beta/gamma/gamma.xml"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {}{"alpha/beta/gamma/gamma.xml"}ARRAY_INITIALIZER_MISMATCH
    {"alpha"}{}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {"alpha"}{}ARRAY_INITIALIZER_MISMATCH
    9
    compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"}, new String[] {});
    Precondition Violations (0)
    Row Violation