sb.append(StringUtils.LINE_SEP); // append the err and output streams to the log if (systemOutput != null && systemOutput.length() > 0) { sb.append("------------- Standard Output ---------------") .append(StringUtils.LINE_SEP) .append(systemOutput) .append("------------- ---------------- ---------------") .append(StringUtils.LINE_SEP); } if (systemError != null && systemError.length() > 0) { sb.append("------------- Standard Error -----------------") .append(StringUtils.LINE_SEP) .append(systemError) .append("------------- ---------------- ---------------") .append(StringUtils.LINE_SEP); }
sb.append(StringUtils.LINE_SEP); // append the err and output streams to the log if (systemOutput != null && systemOutput.length() > 0) { sb.append("------------- Standard Output ---------------") .append(StringUtils.LINE_SEP) .append(systemOutput) .append("------------- ---------------- ---------------") .append(StringUtils.LINE_SEP); } if (systemError != null && systemError.length() > 0) { sb.append("------------- Standard Error -----------------") .append(StringUtils.LINE_SEP) .append(systemError) .append("------------- ---------------- ---------------") .append(StringUtils.LINE_SEP); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java
Method name: void endTestSuite(JUnitTest) Method name: void endTestSuite(JUnitTest)
Number of AST nodes: 5 Number of AST nodes: 5
1
sb.append(StringUtils.LINE_SEP);
1
sb.append(StringUtils.LINE_SEP);
2
        // append the err and output streams to the log
2
        // append the err and output streams to the log
3
        if (systemOutput != null && systemOutput.length() > 0) {
3
        if (systemOutput != null && systemOutput.length() > 0) {
4
            sb.append("------------- Standard Output ---------------")
4
            sb.append("------------- Standard Output ---------------")
5
                .append(StringUtils.LINE_SEP)
5
                    .append(StringUtils.LINE_SEP)
6
                .append(systemOutput)
6
                    .append(systemOutput)
7
                .append("------------- ---------------- ---------------")
7
                    .append("------------- ---------------- ---------------")
8
                .append(StringUtils.LINE_SEP);
8
                    .append(StringUtils.LINE_SEP);
9
        }
9
        }
10
        if (systemError != null && systemError.length() > 0) {
10
        if (systemError != null && systemError.length() > 0) {
11
            sb.append("------------- Standard Error -----------------")
11
            sb.append("------------- Standard Error -----------------")
12
                .append(StringUtils.LINE_SEP)
12
                    .append(StringUtils.LINE_SEP)
13
                .append(systemError)
13
                    .append(systemError)
14
                .append("------------- ---------------- ---------------")
14
                    .append("------------- ---------------- ---------------")
15
                .append(StringUtils.LINE_SEP);
15
                    .append(StringUtils.LINE_SEP);
16
        }
16
        }
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.5
Clones locationClones are in different classes
Number of node comparisons14
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.7
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    10
    sb.append(StringUtils.LINE_SEP);
    11
    sb.append(StringUtils.LINE_SEP);
    11
    if (systemOutput != null && systemOutput.length() > 0)
    12
    if (systemOutput != null && systemOutput.length() > 0)
    12
    sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP);
    13
    sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP);
    13
    if (systemError != null && systemError.length() > 0)
    14
    if (systemError != null && systemError.length() > 0)
    14
    sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP);
    15
    sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP);
    Precondition Violations (0)
    Row Violation