Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Adds a reference to a classpath defined elsewhere * @param r a reference to a classpath. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * Get the classpath. * @return the classpath. */ public Path getClasspath() { return classpath; } /** * Set the classpath to be used to find this compiler adapter * @param cp the compiler classpath. */ public void setCompilerclasspath(Path cp) { if (compilerClasspath == null) { compilerClasspath = cp; } else { compilerClasspath.append(cp); } } /** * get the classpath used to find the compiler adapter * @return the compiler classpath. */ public Path getCompilerclasspath() { return compilerClasspath; } /** * Support nested compiler classpath, used to locate compiler adapter * @return a path to be configured. */ public Path createCompilerclasspath() { if (compilerClasspath == null) { compilerClasspath = new Path(getProject()); } return compilerClasspath.createPath();
Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Adds a reference to a CLASSPATH defined elsewhere. * * @param r the reference to an instance defining the classpath. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * Set the boot classpath to use. * * @param path the boot classpath. */ public void setBootclasspath(Path path) { if (bootclasspath == null) { bootclasspath = path; } else { bootclasspath.append(path); } } /** * Create a Path to be configured with the boot classpath * * @return a new Path instance to be configured with the boot classpath. */ public Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createClasspath() {
1
Path createClasspath() {
2
        if (classpath == null) {
2
        if (classpath == null) {
3
            classpath = new Path(getProject());
3
            classpath = new Path(getProject());
4
        }
4
        }
5
        return classpath.createPath();
5
        return classpath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a reference to a classpath defined elsewhere
8
     * Adds a reference to a CLASSPATH defined elsewhere.
9
     *
9
     * @param r a reference to a classpath.
10
     * @param r the reference to an instance defining the classpath.
10
     */
11
     */
11
    public void setClasspathRef(Reference r) {
12
    public void setClasspathRef(Reference r) {
12
        createClasspath().setRefid(r);
13
        createClasspath().setRefid(r);
13
    }
14
    }
14
    /**
15
    /**
15
     * Get the classpath.
16
     * 
16
     * @return the classpath.
17
     */
18
    public Path getClasspath() {
19
        return classpath;
20
    }
21
    /**
22
     * Set the classpath to be used to find this compiler adapter
17
Set the boot classpath to use.
18
     *
23
     * @param cp the compiler classpath.
19
     * @param path the boot classpath.
24
     */
20
     */
25
    public void setCompilerclasspath(Path cp) {
21
    public void setBootclasspath(Path path) {
26
        if (compilerClasspath == null) {
22
        if (bootclasspath == null) {
27
            compilerClasspath = cp;
23
            bootclasspath = path;
28
        } else {
24
        } else {
29
            compilerClasspath.append(cp);
25
            bootclasspath.append(path);
30
        }
26
        }
31
    }
27
    }
32
    /**
28
    /**
33
     * get the classpath used to find the compiler adapter
29
     * 
34
     * @return the compiler classpath.
30
Create a Path to be configured with the boot classpath
35
     */
31
     *
36
    public Path getCompilerclasspath() {
32
    
37
        return compilerClasspath;
38
    }
39
    /**
40
     * Support nested compiler classpath, used to locate compiler adapter
41
     * @return a path to be configured.
33
 * @return a new Path instance to be configured with the boot classpath.
42
     */
34
     */
43
    public Path createCompilerclasspath() {
35
    public Path createBootclasspath() {
44
        if (compilerClasspath == null) {
36
        if (bootclasspath == null) {
45
            compilerClasspath = new Path(getProject());
37
            bootclasspath = new Path(getProject());
46
        }
38
        }
47
        return compilerClasspath.createPath();
39
        return bootclasspath.createPath();
48
    
40
    
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