} else if (o instanceof FileSet) { TarFileSet zfs = new TarFileSet((FileSet) o); configureFileSet(zfs); return zfs; } else { String msg = getRefid().getRefId() + " doesn\'t denote a tarfileset or a fileset"; throw new BuildException(msg);
} else if (o instanceof FileSet) { ZipFileSet zfs = new ZipFileSet((FileSet) o); configureFileSet(zfs); return zfs; } else { String msg = getRefid().getRefId() + " doesn\'t denote a zipfileset or a fileset"; throw new BuildException(msg);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/TarFileSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/ZipFileSet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
} else if (o instanceof FileSet) {
1
} else if (o instanceof FileSet) {
2
            TarFileSet zfs = new TarFileSet((FileSet) o);
2
            ZipFileSet zfs = new ZipFileSet((FileSet) o);
3
            configureFileSet(zfs);
3
            configureFileSet(zfs);
4
            return zfs;
4
            return zfs;
5
        } else {
5
        } else {
6
            String msg = getRefid().getRefId() + " doesn\'t denote a tarfileset or a fileset";
6
            String msg = getRefid().getRefId() + " doesn\'t denote a zipfileset or a fileset";
7
            throw new BuildException(msg);
7
            throw new BuildException(msg);
8
        
8
        
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