jspc.log("Compilation " + cmd.describeJavaCommand(), Project.MSG_VERBOSE); StringBuffer niceSourceList = new StringBuffer("File"); if (compileList.size() != 1) { niceSourceList.append("s"); } niceSourceList.append(" to be compiled:"); niceSourceList.append(lSep);
attributes.log("Compilation " + cmd.describeArguments(), Project.MSG_VERBOSE); StringBuffer niceSourceList = new StringBuffer("File"); if (compileList.length != 1) { niceSourceList.append("s"); } niceSourceList.append(" to be compiled:"); niceSourceList.append(StringUtils.LINE_SEP);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
Method name: void logAndAddFilesToCompile(JspC, Vector, CommandlineJava) Method name: void logAndAddFilesToCompile(Commandline)
Number of AST nodes: 6 Number of AST nodes: 6
1
jspc.log("Compilation " + cmd.describeJavaCommand(),
1
attributes.log("Compilation " + cmd.describe
2
Arguments(),
2
                 Project.MSG_VERBOSE);
3
                       Project.MSG_VERBOSE);
3
        StringBuffer niceSourceList = new StringBuffer("File");
4
        StringBuffer niceSourceList = new StringBuffer("File");
4
        if (compileList.size() != 1) {
5
        if (compileList.length != 1) {
5
            niceSourceList.append("s");
6
            niceSourceList.append("s");
6
        }
7
        }
7
        niceSourceList.append(" to be compiled:");
8
        niceSourceList.append(" to be compiled:");
8
        niceSourceList.append(lSep);
9
        niceSourceList.append(StringUtils.LINE_SEP);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons14
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)3.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                                                                                    
    1
    attributes.log("Compilation " + cmd.describeArguments(), Project.MSG_VERBOSE);
    1
    jspc.log("Compilation " + cmd.describeJavaCommand(), Project.MSG_VERBOSE);
                                                                                                                                                            
    2
    StringBuffer niceSourceList = new StringBuffer("File");
    2
    StringBuffer niceSourceList = new StringBuffer("File");
    3
    if (compileList.size() != 1)
    3
    if (compileList.size() != 1)
    3
    if (compileList.length != 1)
    Differences
    Expression1Expression2Difference
    compileList.size()compileList.lengthTYPE_COMPATIBLE_REPLACEMENT
    3
    if (compileList.length != 1)
    4
    niceSourceList.append("s");
    4
    niceSourceList.append("s");
    5
    niceSourceList.append(" to be compiled:");
    5
    niceSourceList.append(" to be compiled:");
    6
    niceSourceList.append(lSep);
    6
    niceSourceList.append(lSep);
    6
    niceSourceList.append(StringUtils.LINE_SEP);
    Differences
    Expression1Expression2Difference
    lSepStringUtils.LINE_SEPTYPE_COMPATIBLE_REPLACEMENT
    6
    niceSourceList.append(StringUtils.LINE_SEP);
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes org.apache.tools.ant.taskdefs.optional.jsp.compilers.DefaultJspCompilerAdapter and org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter do not have a common superclass