public void setClasspath(Path classpath) { if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath); } } /** * The classpath to use when looking up a resource. * @return a path to be configured */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.createPath();
public void setClasspath(Path classpath) { if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath); } } /** * Delegate method handling the <classpath> tag. * * <p>This nested path-like structure can set a path to add to the * classpath.</p> * * @return the created path. */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(component.getProject()); } return this.classpath.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Property.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/ClasspathUtils.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 (this.classpath == null) {
2
            if (this.classpath == null) {
3
            this.classpath = classpath;
3
                this.classpath = classpath;
4
        } else {
4
            } else {
5
            this.classpath.append(classpath);
5
                this.classpath.append(classpath);
6
        }
6
         
7
   }
7
    }
8
        }
8
    /**
9
        /**
9
     * The classpath to use when looking up a resource.
10
       
11
  * Delegate method handling the <classpath> tag.
12
         *
13
         * <p>This nested path-like structure can set a path to add to the
14
         * classpath.</p>
15
         *
10
     * @return a path to be configured
16
         * @return 
17
the created path.
11
     */
18
         */
12
    public Path createClasspath() {
19
        public Path createClasspath() {
13
        if (this.classpath == null) {
20
            if (this.classpath == null) {
14
            this.classpath = new Path(getProject());
21
                this.classpath = new Path(component.getProject());
15
        }
22
        
23
    }
16
        return this.classpath.createPath();
24
            return this.classpath.createPath();
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