Path createSourcepath() { if (sourcePath == null) { sourcePath = new Path(getProject()); } return sourcePath.createPath(); } /** * Adds a reference to a CLASSPATH defined elsewhere. * * @param r the reference containing the source path definition. */ public void setSourcepathRef(Reference r) { createSourcepath().setRefid(r);
Path createClasspath() { if (dependClasspath == null) { dependClasspath = new Path(getProject()); } return dependClasspath.createPath(); } /** * Adds a reference to a classpath defined elsewhere. * * @param r a reference to a path object to be used as the depend * classpath */ 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/Javadoc.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createSourcepath() {
1
Path createClasspath() {
2
        if (sourcePath == null) {
2
        if (dependClasspath == null) {
3
            sourcePath = new Path(getProject());
3
            dependClasspath = new Path(getProject());
4
        }
4
        }
5
        return sourcePath.createPath();
5
        return dependClasspath.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
     *
10
     * @param r the reference containing the source path definition.
10
     * @param r a reference to a path object to be used as the depend
11
     *      classpath
11
     */
12
     */
12
    public void setSourcepathRef(Reference r) {
13
    public void setClasspathRef(Reference r) {
13
        createSourcepath().setRefid(r);
14
        createClasspath().setRefid(r);
14
    
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