if (process.execute() != 0) { throw new BuildException("JJTree failed."); }
if (process.execute() != 0) { throw new BuildException("JJDoc failed."); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javacc/JJDoc.java
Method name: void execute() Method name: void execute()
Number of AST nodes: 2 Number of AST nodes: 2
1
if (process.execute() != 0) {
1
if (process.execute() != 0) {
2
                throw new BuildException("JJTree failed.");
2
                throw new BuildException("JJDoc failed.");
3
            }
3
            }
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 having the same super class
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.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    34
    if (process.execute() != 0)
    27
    if (process.execute() != 0)
    35
    throw new BuildException("JJTree failed.");
    35
    throw new BuildException("JJTree failed.");
    28
    throw new BuildException("JJDoc failed.");
    Differences
    Expression1Expression2Difference
    "JJTree failed.""JJDoc failed."LITERAL_VALUE_MISMATCH
    28
    throw new BuildException("JJDoc failed.");
    Precondition Violations (0)
    Row Violation