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");
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");
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 pedanticProperty =
1
String emacsProperty =
2
            project.getProperty("build.compiler.pedantic");
2
 project.getProperty("build.compiler.emacs");
3
        if (pedanticProperty != null && Project.toBoolean(pedanticProperty)) {
3
        if (emacsProperty != null && Project.toBoolean(emacsProperty)) {
4
            cmd.createArgument().setValue("+P");
4
            cmd.createArgument().setValue("+E");
5
        }
5
        }
6
        /**
6
        /**
7
         * Jikes supports something it calls "full dependency
7
         * Jikes 
8
         * checking", see the jikes documentation for differenc
8
issues more warnings that javac, for
9
         * example, when you have files in your classpath
9
es
10
         * that don't exist. As this is often the case, these
10
         * between -depend and +F.
11
         * warning can be pretty annoying.
11
         */
12
         */
12
        String fullDependProperty =
13
        String warningsProperty =
13
            project.getProperty("build.compiler.fulldepend");
14
            project.getProperty("build.compiler.warnings");
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.1
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)4.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    58
    String pedanticProperty = project.getProperty("build.compiler.pedantic");
    58
    String pedanticProperty = project.getProperty("build.compiler.pedantic");
    47
    String emacsProperty = project.getProperty("build.compiler.emacs");
    Differences
    Expression1Expression2Difference
    pedanticPropertyemacsPropertyVARIABLE_NAME_MISMATCH
    "build.compiler.pedantic""build.compiler.emacs"LITERAL_VALUE_MISMATCH
    47
    String emacsProperty = project.getProperty("build.compiler.emacs");
    59
    if (pedanticProperty != null && Project.toBoolean(pedanticProperty))
    59
    if (pedanticProperty != null && Project.toBoolean(pedanticProperty))
    48
    if (emacsProperty != null && Project.toBoolean(emacsProperty))
    Differences
    Expression1Expression2Difference
    pedanticPropertyemacsPropertyVARIABLE_NAME_MISMATCH
    pedanticPropertyemacsPropertyVARIABLE_NAME_MISMATCH
    48
    if (emacsProperty != null && Project.toBoolean(emacsProperty))
    60
    cmd.createArgument().setValue("+P");
    60
    cmd.createArgument().setValue("+P");
    49
    cmd.createArgument().setValue("+E");
    Differences
    Expression1Expression2Difference
    "+P""+E"LITERAL_VALUE_MISMATCH
    49
    cmd.createArgument().setValue("+E");
    61
    String fullDependProperty = project.getProperty("build.compiler.fulldepend");
    61
    String fullDependProperty = project.getProperty("build.compiler.fulldepend");
    50
    String warningsProperty = project.getProperty("build.compiler.warnings");
    Differences
    Expression1Expression2Difference
    fullDependPropertywarningsPropertyVARIABLE_NAME_MISMATCH
    "build.compiler.fulldepend""build.compiler.warnings"LITERAL_VALUE_MISMATCH
    50
    String warningsProperty = project.getProperty("build.compiler.warnings");
    Precondition Violations (0)
    Row Violation