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();
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
void setBootclasspath(Path bootclasspath) {
1
void setExtdirs(Path extdirs) {
2
        if (this.bootclasspath == null) {
2
        if (this.extdirs == null) {
3
            this.bootclasspath = bootclasspath;
3
            this.extdirs = extdirs;
4
        } else {
4
        } else {
5
            this.bootclasspath.append(bootclasspath);
5
            this.extdirs.append(extdirs);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Gets the bootclasspath that will be used to compile the classes
9
     * Gets the 
10
     * against.
11
     * @return the boot
10
extension directories that will be used during the
11
     * compilation.
12
 path
12
     * @return the extension directories as a path
13
     */
13
     */
14
    public Path getBootclasspath() {
14
    public Path getExtdirs() {
15
        return bootclasspath;
15
        return extdirs;
16
    }
16
    }
17
    /**
17
    /**
18
     * Adds a path to the bootclasspath.
18
     * Adds a path to extdirs.
19
     * @return a path to be configured
19
     * @return a path to be configured
20
     */
20
     */
21
    public Path createBootclasspath() {
21
    public Path createExtdirs() {
22
        if (bootclasspath == null) {
22
        if (extdirs == null) {
23
            bootclasspath = new Path(getProject());
23
            extdirs = new Path(getProject());
24
        }
24
        }
25
        return bootclasspath.createPath();
25
        return extdirs.createPath();
26
    
26
    
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