attributes.log("", Project.MSG_WARN); attributes.log(" WARNING", Project.MSG_WARN);
attributes.log("", Project.MSG_WARN); attributes.log("The -source switch defaults to 1.5 in JDK 1.5 and 1.6.", Project.MSG_WARN);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
Method name: Commandline setupModernJavacCommandlineSwitches(Commandline) Method name: Commandline setupModernJavacCommandlineSwitches(Commandline)
Number of AST nodes: 2 Number of AST nodes: 2
1
attributes.log("", Project.MSG_WARN);
1
attributes.log("", Project.MSG_WARN);
2
                attributes.log("
2
                attributes.log("The -source switch defaults to 1.5 in JDK 1.5 and 1.6.",
3
          WARNING", Project.MSG_WARN);
3
                               Project.MSG_WARN);
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 comparisons5
  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
    14
    attributes.log("", Project.MSG_WARN);
    16
    attributes.log("", Project.MSG_WARN);
    15
    attributes.log("          WARNING", Project.MSG_WARN);
    15
    attributes.log(" WARNING", Project.MSG_WARN);
    17
    attributes.log("The -source switch defaults to 1.5 in JDK 1.5 and 1.6.", Project.MSG_WARN);
    Differences
    Expression1Expression2Difference
    " WARNING""The -source switch defaults to 1.5 in JDK 1.5 and 1.6."LITERAL_VALUE_MISMATCH
    17
    attributes.log("The -source switch defaults to 1.5 in JDK 1.5 and 1.6.", Project.MSG_WARN);
    Precondition Violations (0)
    Row Violation