Path createClasspath() { if (compileClasspath == null) { compileClasspath = new Path(getProject()); } return compileClasspath.createPath(); } /** * Adds a reference to a classpath defined elsewhere. * @param r a reference to a classpath */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * Sets the bootclasspath that will be used to compile the classes * against. * @param bootclasspath a path to use as a boot class path (may be more * than one) */ public void setBootclasspath(Path bootclasspath) { if (this.bootclasspath == null) { this.bootclasspath = bootclasspath; } else { this.bootclasspath.append(bootclasspath); } } /** * Gets the bootclasspath that will be used to compile the classes * against. * @return the boot path */ public Path getBootclasspath() { return bootclasspath; } /** * Adds a path to the bootclasspath. * @return a path to be configured */ public Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath();
Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath(); } /** * Adds a reference to a classpath defined elsewhere. * @param r a reference to a classpath */ public void setBootClasspathRef(Reference r) { createBootclasspath().setRefid(r); } /** * Sets the extension directories that will be used during the * compilation. * @param extdirs a path */ public void setExtdirs(Path extdirs) { if (this.extdirs == null) { this.extdirs = extdirs; } else { this.extdirs.append(extdirs); } } /** * Gets the extension directories that will be used during the * compilation. * @return the extension directories as a path */ public Path getExtdirs() { return extdirs; } /** * Adds a path to extdirs. * @return a path to be configured */ public Path createExtdirs() { if (extdirs == null) { extdirs = new Path(getProject()); } return extdirs.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javac.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javac.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createClasspath() {
1
Path createBootclasspath() {
2
        if (compileClasspath == null) {
2
        if (bootclasspath == null) {
3
            compileClasspath = new Path(getProject());
3
            bootclasspath = new Path(getProject());
4
        }
4
        }
5
        return compileClasspath.createPath();
5
        return bootclasspath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a reference to a classpath defined elsewhere.
8
     * Adds a reference to a classpath defined elsewhere.
9
     * @param r a reference to a classpath
9
     * @param r a reference to a classpath
10
     */
10
     */
11
    public void setClasspathRef(Reference r) {
11
    public void setBootClasspathRef(Reference r) {
12
        createClasspath().setRefid(r);
12
        createBootclasspath().setRefid(r);
13
    }
13
    }
14
    /**
14
    /**
15
     * Sets the bootclasspath that will be used to compile the classes
15
     * Sets the 
16
     * against.
17
     * @param bootclasspath a path to use as a boot class path (may be more
18
     *                      than one)
16
extension directories that will be used during the
17
     * compilation.
18
     * @param extdirs a path
19
     */
19
     */
20
    public void setBootclasspath(Path bootclasspath) {
20
    public void setExtdirs(Path extdirs) {
21
        if (this.bootclasspath == null) {
21
        if (this.extdirs == null) {
22
            this.bootclasspath = bootclasspath;
22
            this.extdirs = extdirs;
23
        } else {
23
        } else {
24
            this.bootclasspath.append(bootclasspath);
24
            this.extdirs.append(extdirs);
25
        }
25
        }
26
    }
26
    }
27
    /**
27
    /**
28
     * Gets the bootclasspath that will be used to compile the classes
28
     * Gets the 
29
     * against.
30
     * @return the boot
29
extension directories that will be used during the
30
     * compilation.
31
 path
31
     * @return the extension directories as a path
32
     */
32
     */
33
    public Path getBootclasspath() {
33
    public Path getExtdirs() {
34
        return bootclasspath;
34
        return extdirs;
35
    }
35
    }
36
    /**
36
    /**
37
     * Adds a path to the bootclasspath.
37
     * Adds a path to extdirs.
38
     * @return a path to be configured
38
     * @return a path to be configured
39
     */
39
     */
40
    public Path createBootclasspath() {
40
    public Path createExtdirs() {
41
        if (bootclasspath == null) {
41
        if (extdirs == null) {
42
            bootclasspath = new Path(getProject());
42
            extdirs = new Path(getProject());
43
        }
43
        }
44
        return bootclasspath.createPath();
44
        return extdirs.createPath();
45
    
45
    
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