if (!getFailOnErr()) { getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE); } // For debugging // System.out.println(commandLine.toString()); result = run(commandLine); if (Execute.isFailure(result) && getFailOnErr()) { String msg = "Failed executing: " + commandLine.toString(); throw new BuildException(msg, getLocation()); }
if (!getFailOnErr()) { getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE); } result = run(commandLine); if (Execute.isFailure(result) && getFailOnErr()) { String msg = "Failed executing: " + commandLine.toString(); throw new BuildException(msg, getLocation()); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
Method name: void execute() Method name: void execute()
Number of AST nodes: 6 Number of AST nodes: 6
1
if (!getFailOnErr()) {
1
if (!getFailOnErr()) {
2
            getProject().log("Ignoring any errors that occur for: "
2
            getProject().log("Ignoring any errors that occur for: "
3
                    + getViewPathBasename(), Project.MSG_VERBOSE);
3
                    + getOpType(), Project.MSG_VERBOSE);
4
        }
4
        }
5
        // For debugging
6
        // System.out.println(commandLine.toString());
7
        result = run(commandLine);
5
        result = run(commandLine);
8
        if (Execute.isFailure(result) && getFailOnErr()) {
6
        if (Execute.isFailure(result) && getFailOnErr()) {
9
            String msg = "Failed executing: " + commandLine.toString();
7
            String msg = "Failed executing: " + commandLine.toString();
10
            throw new BuildException(msg, getLocation());
8
            throw new BuildException(msg, getLocation());
11
        }
9
        }
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 comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)12.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    13
    if (!getFailOnErr())
    9
    if (!getFailOnErr())
    14
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
    14
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
    10
    getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE);
    Differences
    Expression1Expression2Difference
    getViewPathBasenamegetOpTypeMETHOD_INVOCATION_NAME_MISMATCH
    10
    getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE);
    15
    result = run(commandLine);
    11
    result = run(commandLine);
    16
    if (Execute.isFailure(result) && getFailOnErr())
    12
    if (Execute.isFailure(result) && getFailOnErr())
    17
    String msg = "Failed executing: " + commandLine.toString();
    13
    String msg = "Failed executing: " + commandLine.toString();
    18
    throw new BuildException(msg, getLocation());
    14
    throw new BuildException(msg, getLocation());
    Precondition Violations (0)
    Row Violation