Path createSourcepath() { if (compileSourcepath == null) { compileSourcepath = new Path(getProject()); } return compileSourcepath.createPath(); } /** * Adds a reference to a source path defined elsewhere. * @param r a reference to a source path */ public void setSourcepathRef(Reference r) { createSourcepath().setRefid(r);
Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath(); } /** * Adds a reference to a classpath defined elsewhere. * @param r a reference to a classpath */ public void setBootClasspathRef(Reference r) { createBootclasspath().setRefid(r);
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/Javac.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createSourcepath() {
1
Path createBootclasspath() {
2
        if (compileSourcepath == null) {
2
        if (bootclasspath == null) {
3
            compileSourcepath = new Path(getProject());
3
            bootclasspath = new Path(getProject());
4
        }
4
        }
5
        return compileSourcepath.createPath();
5
        return bootclasspath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a reference to a source path defined elsewhere.
8
     * Adds a reference to a classpath defined elsewhere.
9
     * @param r a reference to a source path
9
     * @param r a reference to a classpath
10
     */
10
     */
11
    public void setSourcepathRef(Reference r) {
11
    public void setBootClasspathRef(Reference r) {
12
        createSourcepath().setRefid(r);
12
        createBootclasspath().setRefid(r);
13
    
13
    
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