void addFileset(FileSet fs) throws BuildException { if (fs.getProject() == null) { fs.setProject(getProject()); } add(fs); } /** * Adds a nested <code><filelist></code> element. * @param fl a <code>FileList</code> to be added to the path * @throws BuildException on error */ public void addFilelist(FileList fl) throws BuildException { if (fl.getProject() == null) { fl.setProject(getProject()); } add(fl);
void addFilelist(FileList fl) throws BuildException { if (fl.getProject() == null) { fl.setProject(getProject()); } add(fl); } /** * Adds a nested <code><dirset></code> element. * @param dset a <code>DirSet</code> to be added to the path * @throws BuildException on error */ public void addDirset(DirSet dset) throws BuildException { if (dset.getProject() == null) { dset.setProject(getProject()); } add(dset);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Path.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Path.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void addFileset(FileSet fs) throws BuildException {
1
void addFilelist(FileList fl) throws BuildException {
2
        if (fs.getProject() == null) {
2
        if (fl.getProject() == null) {
3
            fs.setProject(getProject());
3
            fl.setProject(getProject());
4
        }
4
        }
5
        add(fs);
5
        add(fl);
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a nested <code><filelist></code> element.
8
     * Adds a nested <code><dirset></code> element.
9
     * @param fl a <code>FileList</code> to be added to the path
9
     * @param dset a <code>DirSet</code> to be added to the path
10
     * @throws BuildException on error
10
     * @throws BuildException on error
11
     */
11
     */
12
    public void addFilelist(FileList fl) throws BuildException {
12
    public void addDirset(DirSet dset) throws BuildException {
13
        if (fl.getProject() == null) {
13
        if (dset.getProject() == null) {
14
            fl.setProject(getProject());
14
            dset.setProject(getProject());
15
        }
15
        }
16
        add(fl);
16
        add(dset);
17
    
17
    
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