Path bcp = new Path(javah.getProject()); if (javah.getBootclasspath() != null) { bcp.append(javah.getBootclasspath()); } bcp = bcp.concatSystemBootClasspath("ignore");
Path cp = new Path(javah.getProject()); if (javah.getBootclasspath() != null) { cp.append(javah.getBootclasspath()); } cp = cp.concatSystemBootClasspath("ignore");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/Kaffeh.java
Method name: Commandline setupJavahCommand(Javah) Method name: Commandline setupKaffehCommand(Javah)
Number of AST nodes: 4 Number of AST nodes: 4
1
Path bcp = new Path(javah.getProject());
1
Path cp = new Path(javah.getProject());
2
        if (javah.getBootclasspath() != null) {
2
        if (javah.getBootclasspath() != null) {
3
            bcp.append(javah.getBootclasspath());
3
            cp.append(javah.getBootclasspath());
4
        }
4
        }
5
        bcp = bcp.concatSystemBootClasspath("ignore");
5
        cp = cp.concatSystemBootClasspath("ignore");
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.2
Clones locationClones are in different classes
Number of node comparisons6
  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)1.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    21
    Path bcp = new Path(javah.getProject());
    21
    Path bcp = new Path(javah.getProject());
    9
    Path cp = new Path(javah.getProject());
    Differences
    Expression1Expression2Difference
    bcpcpVARIABLE_NAME_MISMATCH
    9
    Path cp = new Path(javah.getProject());
    22
    if (javah.getBootclasspath() != null)
    10
    if (javah.getBootclasspath() != null)
    23
    bcp.append(javah.getBootclasspath());
    23
    bcp.append(javah.getBootclasspath());
    11
    cp.append(javah.getBootclasspath());
    Differences
    Expression1Expression2Difference
    bcpcpVARIABLE_NAME_MISMATCH
    11
    cp.append(javah.getBootclasspath());
    24
    bcp = bcp.concatSystemBootClasspath("ignore");
    24
    bcp = bcp.concatSystemBootClasspath("ignore");
    12
    cp = cp.concatSystemBootClasspath("ignore");
    Differences
    Expression1Expression2Difference
    bcpcpVARIABLE_NAME_MISMATCH
    bcpcpVARIABLE_NAME_MISMATCH
    12
    cp = cp.concatSystemBootClasspath("ignore");
    Precondition Violations (0)
    Row Violation