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(); } /** * Set the reference to an optional classpath to the XSL processor * * @param r the id of the Ant path instance to act as the classpath * for loading the XSL processor */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r);
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(); } /** * Set the classpath by reference. * * @param r a Reference to a Path instance to be used as the classpath * value. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Available.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
     * Set the optional classpath to the XSL processor
5
     * Classpath to be used when searching for classes and resources.
6
     *
6
     *
7
     * @return a path instance to be configured by the Ant core.
7
     * @return an empty Path instance to be configured by Ant.
8
     */
8
     */
9
    public Path createClasspath() {
9
    public Path createClasspath() {
10
        if (classpath == null) {
10
        if (this.classpath == null) {
11
            classpath = new Path(getProject());
11
            this.classpath = new Path(getProject());
12
        }
12
        }
13
        return classpath.createPath();
13
        return this.classpath.createPath();
14
    }
14
    }
15
    /**
15
    /**
16
     * Set the reference to an optional classpath to the XSL processor
16
     * Set the classpath by reference.
17
     *
17
     *
18
     * @param r the id of the Ant path instance to act as the classpath
18
     * @param r a Reference to a Path instance to be used as the classpath
19
     *          for loading the XSL processor
19
     *          value.
20
     */
20
     */
21
    public void setClasspathRef(Reference r) {
21
    public void setClasspathRef(Reference r) {
22
        createClasspath().setRefid(r);
22
        createClasspath().setRefid(r);
23
    
23
    
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