boolean res = m.find(); if (res) { m.appendReplacement(sb, argument); m.appendTail(sb); } else { sb.append(input); }
if (newProject != null) { newProject.demuxOutput(errorOutputToHandle, true); } else { super.handleErrorOutput(errorOutputToHandle); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Ant.java
Method name: String substitute(String, String, int) Method name: void handleErrorOutput(String)
Number of AST nodes: 5 Number of AST nodes: 3
1
boolean res = m.find();
2
            if (res) {
3
                m.appendReplacement(sb, argument);
4
                m.appendTail(sb);
5
            } else {
6
                sb.append(input);
7
    
1
if (newProject != null) {
2
            newProject.demuxOutput(errorOutputToHandle, true);
3
        } else {
4
            super.handleErrorOutput(errorOutputToHandle);
8
        }
5
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1