public String[] getIncludedFiles() { if (src == null) { return super.getIncludedFiles(); } scanme(); Set s = matchFileEntries.keySet(); return (String[]) (s.toArray(new String[s.size()])); } /** * Override parent implementation. * @return count of included files. * @since Ant 1.7 */ public int getIncludedFilesCount() { if (src == null) { return super.getIncludedFilesCount(); } scanme(); return matchFileEntries.size()
public String[] getIncludedDirectories() { if (src == null) { return super.getIncludedDirectories(); } scanme(); Set s = matchDirEntries.keySet(); return (String[]) (s.toArray(new String[s.size()])); } /** * Override parent implementation. * @return count of included directories. * @since Ant 1.7 */ public int getIncludedDirsCount() { if (src == null) { return super.getIncludedDirsCount(); } scanme(); return matchDirEntries.size()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public String[] getIncludedFiles() {
1
public String[] getIncludedDirectories() {
2
        if (src == null) {
2
        if (src == null) {
3
            return super.getIncludedFiles();
3
            return super.getIncludedDirectories();
4
        }
4
        }
5
        scanme();
5
        scanme();
6
        Set s = matchFileEntries.keySet();
6
        Set s = matchDirEntries.keySet();
7
        return (String[]) (s.toArray(new String[s.size()]));
7
        return (String[]) (s.toArray(new String[s.size()]));
8
    }
8
    }
9
    /**
9
    /**
10
     * Override parent implementation.
10
     * Override parent implementation.
11
     * @return count of included files.
11
     * @return count of included directories.
12
     * @since Ant 1.7
12
     * @since Ant 1.7
13
     */
13
     */
14
    public int getIncludedFilesCount() {
14
    public int getIncludedDirsCount() {
15
        if (src == null) {
15
        if (src == null) {
16
            return super.getIncludedFilesCount();
16
            return super.getIncludedDirsCount();
17
        }
17
        }
18
        scanme();
18
        scanme();
19
        return matchFileEntries.size()
19
        return matchDirEntries.size()
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