Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.createPath(); } /** * Set the classpath by reference. * * @param r a Reference to a Path instance to be used as the classpath * value. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r);
Path createClasspath() { if (this.classpath == null) { this.classpath = new Path(getProject()); } return this.classpath.createPath(); } /** * Where to find the parser class; optional. * @see #setClasspath * @param r reference to a classpath defined elsewhere */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Available.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createClasspath() {
1
Path createClasspath() {
2
        if (this.classpath == null) {
2
        if (this.classpath == null) {
3
            this.classpath = new Path(getProject());
3
            this.classpath = new Path(getProject());
4
        }
4
        }
5
        return this.classpath.createPath();
5
        return this.classpath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Set the classpath by reference.
8
     * 
9
     *
9
Where to find the parser class; optional.
10
     * @see #setClasspath
10
     * @param r a Reference to a Path instance to be used as the classpath
11
     * @param r reference to a 
11
     *          value.
12
classpath defined elsewhere
12
     */
13
     */
13
    public void setClasspathRef(Reference r) {
14
    public void setClasspathRef(Reference r) {
14
        createClasspath().setRefid(r);
15
        createClasspath().setRefid(r);
15
    
16
    
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