void setClasspath(Path classpath) { createClasspath().append(classpath); } /** * Classpath to be used when searching for classes and resources. * * @return an empty Path instance to be configured by Ant. */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.createPath();
void setClasspath(Path classpath) { createClasspath().append(classpath); } /** * Set the optional classpath to the XSL processor * * @return a path instance to be configured by the Ant core. */ public Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Available.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClasspath(Path classpath) {
1
void setClasspath(Path classpath) {
2
        createClasspath().append(classpath);
2
        createClasspath().append(classpath);
3
    }
3
    }
4
    /**
4
    /**
5
     * Classpath to be used when searching for classes and resources.
5
     * Set the optional classpath to the XSL processor
6
     *
6
     *
7
     * @return an empty Path instance to be configured by Ant.
7
     * @return a path instance to be configured by the Ant core.
8
     */
8
     */
9
    public Path createClasspath() {
9
    public Path createClasspath() {
10
        if (this.classpath == null) {
10
        if (classpath == null) {
11
            this.classpath = new Path(getProject());
11
            classpath = new Path(getProject());
12
        }
12
        }
13
        return this.classpath.createPath();
13
        return classpath.createPath();
14
    
14
    
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