Path createClasspath() { if (compileClasspath == null) { compileClasspath = new Path(getProject()); } return compileClasspath.createPath(); } /** * Create a new JVM argument. Ignored if no JVM is forked. * @param commandline the commandline to create the argument on * @return create a new JVM argument so that any argument can * be passed to the JVM. * @see #setFork(boolean) */ public Commandline.Argument createJvmarg(CommandlineJava commandline) { return commandline.createVmArgument(); } /** * Adds a reference to a classpath defined elsewhere. * @param r a classpath reference */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r);
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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.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 createSourcepath() {
2
        if (compileClasspath == null) {
2
        if (sourcePath == null) {
3
            compileClasspath = new Path(getProject());
3
            sourcePath = new Path(getProject());
4
        }
4
        }
5
        return compileClasspath.createPath();
5
        return sourcePath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Create a new JVM argument. Ignored if no JVM is forked.
8
     * 
9
     * @param commandline the commandline to create the argument on
10
     * @return  create a new JVM argument so that any argument can
9
Adds a reference to a CLASSPATH defined elsewhere.
11
     *
10
     *
12
          be passed to the JVM.
11
     
13
     * @see #setFork(boolean)
14
     */
15
    public Commandline.Argument createJvmarg(CommandlineJava commandline) {
16
        return commandline.createVmArgument();
17
    }
18
    /**
19
     * Adds a reference to a classpath defined elsewhere.
20
     * @param r a classpath reference
12
* @param r the reference containing the source path definition.
21
     */
13
     */
22
    public void setClasspathRef(Reference r) {
14
    public void setSourcepathRef(Reference r) {
23
        createClasspath().setRefid(r);
15
        createSourcepath().setRefid(r);
24
    
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