void setClasspath(Path classpath) { createClasspath().append(classpath); } /** * Classpath to be used when searching for classes and resources. * * @return an empty Path instance to be configured by Ant. */ public Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.createPath();
void setFilepath(Path filepath) { createFilepath().append(filepath); } /** * Path to search for file resources. * * @return a new Path instance which Ant will configure with a file search * path. */ public Path createFilepath() { if (this.filepath == null) { this.filepath = new Path(getProject()); } return this.filepath.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/condition/HasMethod.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Available.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClasspath(Path classpath) {
1
void setFilepath(Path filepath) {
2
        createClasspath().append(classpath);
2
        createFilepath().append(filepath);
3
    }
3
    }
4
    /**
4
    /**
5
     * Classpath to be used when searching for classes and resources.
5
     * Path to search for file resources.
6
     *
6
     *
7
     * @return an empty Path instance to be configured by Ant
7
     * @return a new Path instance which Ant will configure with a file search
8
.
8
     *         path.
9
     */
9
     */
10
    public Path createClasspath() {
10
    public Path createFilepath() {
11
        if (this.classpath == null) {
11
        if (this.filepath == null) {
12
            this.classpath = new Path(getProject());
12
            this.filepath = new Path(getProject());
13
        }
13
        }
14
        return this.classpath.createPath();
14
        return this.filepath.createPath();
15
    
15
    
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