Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath(); } /** * Adds a reference to a CLASSPATH defined elsewhere. * * @param r the reference to an instance defining the bootclasspath. */ public void setBootClasspathRef(Reference r) { createBootclasspath().setRefid(r);
Path createClasspath() { if (compileClasspath == null) { compileClasspath = new Path(getProject()); } return compileClasspath.createPath(); } /** * Adds to the classpath a reference to * a <path> defined elsewhere. * @param pathRef the reference to add to the classpath */ public void setClasspathRef(Reference pathRef) { createClasspath().setRefid(pathRef);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Rmic.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createBootclasspath() {
1
Path createClasspath() {
2
        if (bootclasspath == null) {
2
        if (compileClasspath == null) {
3
            bootclasspath = new Path(getProject());
3
            compileClasspath = new Path(getProject());
4
        }
4
        }
5
        return bootclasspath.createPath();
5
        return compileClasspath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a reference to a CLASSPATH
8
     * Adds to the classpath a reference to
9
 defined elsewhere.
9
     * a <path> defined elsewhere.
10
     *
11
     * @param r the reference to an instance defining the bootclasspath.
10
     * @param pathRef the reference to add to the classpath
12
     */
11
     */
13
    public void setBootClasspathRef(Reference r) {
12
    public void setClasspathRef(Reference pathRef) {
14
        createBootclasspath().setRefid(r);
13
        createClasspath().setRefid(pathRef);
15
    
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