String emacsProperty = project.getProperty("build.compiler.emacs"); if (emacsProperty != null && Project.toBoolean(emacsProperty)) { cmd.createArgument().setValue("+E"); } /** * Jikes issues more warnings that javac, for * example, when you have files in your classpath * that don't exist. As this is often the case, these * warning can be pretty annoying. */ String warningsProperty = project.getProperty("build.compiler.warnings");
String pedanticProperty = project.getProperty("build.compiler.pedantic"); if (pedanticProperty != null && Project.toBoolean(pedanticProperty)) { cmd.createArgument().setValue("+P"); } /** * Jikes supports something it calls "full dependency * checking", see the jikes documentation for differences * between -depend and +F. */ String fullDependProperty = project.getProperty("build.compiler.fulldepend");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Jikes.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Jikes.java
Method name: boolean execute() Method name: boolean execute()
Number of AST nodes: 4 Number of AST nodes: 4
1
String emacsProperty =
1
String pedanticProperty =
2
 project.getProperty("build.compiler.emacs");
2
            project.getProperty("build.compiler.pedantic");
3
        if (emacsProperty != null && Project.toBoolean(emacsProperty)) {
3
        if (pedanticProperty != null && Project.toBoolean(pedanticProperty)) {
4
            cmd.createArgument().setValue("+E");
4
            cmd.createArgument().setValue("+P");
5
        }
5
        }
6
        /**
6
        /**
7
         * Jikes issues more warnings that javac, for
7
         * Jikes 
8
         * example, when you have files in your classpath
9
         * that don't exist. As this is often the case, th
8
supports something it calls "full dependency
10
ese
9
         * checking", see the jikes documentation for differences
11
         * warning can be pretty annoying.
10
         * between -depend and +F.
12
         */
11
         */
13
        String warningsProperty =
12
        String fullDependProperty =
14
            project.getProperty("build.compiler.warnings");
13
            project.getProperty("build.compiler.fulldepend");
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 the same method
Number of node comparisons8
  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)30.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    47
    String emacsProperty = project.getProperty("build.compiler.emacs");
    47
    String emacsProperty = project.getProperty("build.compiler.emacs");
    58
    String pedanticProperty = project.getProperty("build.compiler.pedantic");
    Differences
    Expression1Expression2Difference
    emacsPropertypedanticPropertyVARIABLE_NAME_MISMATCH
    "build.compiler.emacs""build.compiler.pedantic"LITERAL_VALUE_MISMATCH
    58
    String pedanticProperty = project.getProperty("build.compiler.pedantic");
    48
    if (emacsProperty != null && Project.toBoolean(emacsProperty))
    48
    if (emacsProperty != null && Project.toBoolean(emacsProperty))
    59
    if (pedanticProperty != null && Project.toBoolean(pedanticProperty))
    Differences
    Expression1Expression2Difference
    emacsPropertypedanticPropertyVARIABLE_NAME_MISMATCH
    emacsPropertypedanticPropertyVARIABLE_NAME_MISMATCH
    59
    if (pedanticProperty != null && Project.toBoolean(pedanticProperty))
    49
    cmd.createArgument().setValue("+E");
    49
    cmd.createArgument().setValue("+E");
    60
    cmd.createArgument().setValue("+P");
    Differences
    Expression1Expression2Difference
    "+E""+P"LITERAL_VALUE_MISMATCH
    60
    cmd.createArgument().setValue("+P");
    50
    String warningsProperty = project.getProperty("build.compiler.warnings");
    50
    String warningsProperty = project.getProperty("build.compiler.warnings");
    61
    String fullDependProperty = project.getProperty("build.compiler.fulldepend");
    Differences
    Expression1Expression2Difference
    warningsPropertyfullDependPropertyVARIABLE_NAME_MISMATCH
    "build.compiler.warnings""build.compiler.fulldepend"LITERAL_VALUE_MISMATCH
    61
    String fullDependProperty = project.getProperty("build.compiler.fulldepend");
    Precondition Violations (0)
    Row Violation