public void setClasspath(Path classpath) { if (isReference()) { throw tooManyAttributes(); } if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath);
public void setClasspath(Path classpath) { if (isReference()) { throw tooManyAttributes(); } if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AntFilterReader.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Mapper.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setClasspath(Path classpath) {
1
public void setClasspath(Path classpath) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        if (this.classpath == null) {
5
        if (this.classpath == null) {
6
            this.classpath = classpath;
6
            this.classpath = classpath;
7
        } else {
7
        } else {
8
            this.classpath.append(classpath);
8
            this.classpath.append(classpath);
9
        
9
        
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 location
Number of node comparisons0