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 setClasspath(Path classpath) { if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath); } } /** * Adds path to the classpath. * @return a path to be configured as a nested element. */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.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/optional/ejb/BorlandGenerateClient.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setBootclasspath(Path bootclasspath) {
1
void setClasspath(Path classpath) {
2
        if (this.bootclasspath == null) {
2
        if (this.classpath == null) {
3
            this.bootclasspath = bootclasspath;
3
            this.classpath = classpath;
4
        } else {
4
        } else {
5
            this.bootclasspath.append(bootclasspath);
5
            this.classpath.append(classpath);
6
        }
6
        }
7
    }
7
    }
8
    /**
9
     * Gets the bootclasspath that will be used to compile the classes
10
     * against.
11
     * @return the boot path
12
     */
13
    public Path getBootclasspath() {
14
        return bootclasspath;
15
    }
16
    /**
8
    /**
17
     * Adds a path to the bootclasspath.
9
     * Adds path to the classpath.
18
     * @return a path to be configured
10
     * @return a path to be configured as a nested element.
19
     */
11
     */
20
    public Path createBootclasspath() {
12
    public Path createClasspath() {
21
        if (bootclasspath == null) {
13
        if (this.classpath == null) {
22
            bootclasspath = new Path(getProject());
14
            this.classpath = new Path(getProject());
23
        }
15
        }
24
        return bootclasspath.createPath();
16
        return this.classpath.createPath();
25
    
17
    
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