assertTrue("name should contain \"javac\"", javac.getJavacExecutable().indexOf("javac") > -1); project.setProperty("build.compiler", "extJavac");
assertTrue("name should contain \"javac\"", javac.getJavacExecutable().indexOf("javac") > -1); project.setProperty("build.compiler", "whatever");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavacTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavacTest.java
Method name: void testForkedExecutableName() Method name: void testForkedExecutableName()
Number of AST nodes: 2 Number of AST nodes: 2
1
assertTrue("name should contain \"javac\"",
1
assertTrue("name should contain \"javac\"",
2
                   javac.getJavacExecutable().indexOf("javac") > -1);
2
                   javac.getJavacExecutable().indexOf("javac") > -1);
3
        project.setProperty("build.compiler", "extJavac");
3
        project.setProperty("build.compiler", "whatever");
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 in the same method
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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    6
    assertTrue("name should contain \"javac\"", javac.getJavacExecutable().indexOf("javac") > -1);
    10
    assertTrue("name should contain \"javac\"", javac.getJavacExecutable().indexOf("javac") > -1);
    7
    project.setProperty("build.compiler", "extJavac");
    7
    project.setProperty("build.compiler", "extJavac");
    11
    project.setProperty("build.compiler", "whatever");
    Differences
    Expression1Expression2Difference
    "extJavac""whatever"LITERAL_VALUE_MISMATCH
    11
    project.setProperty("build.compiler", "whatever");
    Precondition Violations (0)
    Row Violation