void setClasspath(Path classpath) { if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath); } } /** * The classpath to use when looking up a resource. * @return a path to be configured */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.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/Property.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 setClasspath(Path classpath) {
1
void setExtdirs(Path extdirs) {
2
        if (this.classpath == null) {
2
        if (this.extdirs == null) {
3
            this.classpath = classpath;
3
            this.extdirs = extdirs;
4
        } else {
4
        } else {
5
            this.classpath.append(classpath);
5
            this.extdirs.append(extdirs);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * The classpath to use when looking up a resource
9
     * Gets the extension directories that will be used during the
10
     * compilation.
11
     * @return the extension directories as a path
12
     */
13
    public Path getExtdirs() {
14
        return extdirs;
15
    }
16
    /**
10
.
17
     * Adds a path to extdirs.
11
     * @return a path to be configured
18
     * @return a path to be configured
12
     */
19
     */
13
    public Path createClasspath() {
20
    public Path createExtdirs() {
14
        if (this.classpath == null) {
21
        if (extdirs == null) {
15
            this.classpath = new Path(getProject());
22
            extdirs = new Path(getProject());
16
        }
23
        }
17
        return this.classpath.createPath();
24
        return extdirs.createPath();
18
    
25
    
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