String[] getNotIncludedFiles() { slowScan(); String[] files = new String[filesNotIncluded.size()]; filesNotIncluded.copyInto(files); return files; } /** * Return the names of the files which matched at least one of the * include patterns and at least one of the exclude patterns. * The names are relative to the base directory. This involves * performing a slow scan if one has not already been completed. * * @return the names of the files which matched at least one of the * include patterns and at least one of the exclude patterns. * * @see #slowScan */ public synchronized String[] getExcludedFiles() { slowScan(); String[] files = new String[filesExcluded.size()]; filesExcluded.copyInto(files); return files;
String[] getNotIncludedDirectories() { slowScan(); String[] directories = new String[dirsNotIncluded.size()]; dirsNotIncluded.copyInto(directories); return directories; } /** * Return the names of the directories which matched at least one of the * include patterns and at least one of the exclude patterns. * The names are relative to the base directory. This involves * performing a slow scan if one has not already been completed. * * @return the names of the directories which matched at least one of the * include patterns and at least one of the exclude patterns. * * @see #slowScan */ public synchronized String[] getExcludedDirectories() { slowScan(); String[] directories = new String[dirsExcluded.size()]; dirsExcluded.copyInto(directories); return directories;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String[] getNotIncludedFiles() {
1
String[] getNotIncludedDirectories() {
2
        slowScan();
2
        slowScan();
3
        String[] files = new String[filesNotIncluded.size()];
3
        String[] directories = new String[dirsNotIncluded.size()];
4
        filesNotIncluded.copyInto(files);
4
        dirsNotIncluded.copyInto(directories);
5
        return files;
5
        return directories;
6
    }
6
    }
7
    /**
7
    /**
8
     * Return the names of the files which matched at least one of the
8
     * Return the names of the directories which matched at least one of the
9
     * include patterns and at least one of the exclude patterns.
9
     * include patterns and at least one of the exclude patterns.
10
     * The names are relative to the base directory. This involves
10
     * The names are relative to the base directory. This involves
11
     * performing a slow scan if one has not already been completed.
11
     * performing a slow scan if one has not already been completed.
12
     *
12
     *
13
     * @return the names of the files which matched at least one of the
13
     * @return the names of the directories which matched at least one of the
14
     *         include patterns and at least one of the exclude patterns.
14
     * include patterns and at least one of the exclude patterns.
15
     *
15
     *
16
     * @see #slowScan
16
     * @see #slowScan
17
     */
17
     */
18
    public synchronized String[] getExcludedFiles() {
18
    public synchronized String[] getExcludedDirectories() {
19
        slowScan();
19
        slowScan();
20
        String[] files = new String[filesExcluded.size()];
20
        String[] directories = new String[dirsExcluded.size()];
21
        filesExcluded.copyInto(files);
21
        dirsExcluded.copyInto(directories);
22
        return files;
22
        return directories;
23
    
23
    
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