Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath(); } /** * To the bootstrap path, this adds a reference to a classpath defined elsewhere. * @param r a reference to a classpath * @todo this needs to be documented in the HTML. */ public void setBootClasspathRef(Reference r) { createBootclasspath().setRefid(r);
Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Set the reference to an optional classpath to the XSL processor * * @param r the id of the Ant path instance to act as the classpath * for loading the XSL processor */ 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/optional/Javah.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createBootclasspath() {
1
Path createClasspath() {
2
        if (bootclasspath == null) {
2
        if (classpath == null) {
3
            bootclasspath = new Path(getProject());
3
            classpath = new Path(getProject());
4
        }
4
        }
5
        return bootclasspath.createPath();
5
        return classpath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * To the bootstrap path, this adds a reference to a classpath defined elsewhere.
8
     * Set the reference to an optional classpath 
9
     * @param r a reference to a classpath
10
     * @todo this needs to be documented 
9
to the XSL processor
10
     *
11
     * @param r the id of the Ant path instance to act as the classpath
11
in the HTML.
12
     *          for loading the XSL processor
12
     */
13
     */
13
    public void setBootClasspathRef(Reference r) {
14
    public void setClasspathRef(Reference r) {
14
        createBootclasspath().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