String[] getExcludedFiles() { slowScan(); String[] files = new String[filesExcluded.size()]; filesExcluded.copyInto(files); return files; } /** * <p>Return the names of the files which were selected out and * therefore not ultimately included.</p> * * <p>The names are relative to the base directory. This involves * performing a slow scan if one has not already been completed.</p> * * @return the names of the files which were deselected. * * @see #slowScan */ public synchronized String[] getDeselectedFiles() { slowScan(); String[] files = new String[filesDeselected.size()]; filesDeselected.copyInto(files); return files;
String[] getExcludedDirectories() { slowScan(); String[] directories = new String[dirsExcluded.size()]; dirsExcluded.copyInto(directories); return directories; } /** * <p>Return the names of the directories which were selected out and * therefore not ultimately included.</p> * * <p>The names are relative to the base directory. This involves * performing a slow scan if one has not already been completed.</p> * * @return the names of the directories which were deselected. * * @see #slowScan */ public synchronized String[] getDeselectedDirectories() { slowScan(); String[] directories = new String[dirsDeselected.size()]; dirsDeselected.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[] getExcludedFiles() {
1
String[] getExcludedDirectories() {
2
        slowScan();
2
        slowScan();
3
        String[] files = new String[filesExcluded.size()];
3
        String[] directories = new String[dirsExcluded.size()];
4
        filesExcluded.copyInto(files);
4
        dirsExcluded.copyInto(directories);
5
        return files;
5
        return directories;
6
    }
6
    }
7
    /**
7
    /**
8
     * <p>Return the names of the files which were selected out and
8
     * <p>Return the names of the directories which were selected out and
9
     * therefore not ultimately included.</p>
9
     * therefore not ultimately included.</p>
10
     *
10
     *
11
     * <p>The names are relative to the base directory. This involves
11
     * <p>The names are relative to the base directory. This involves
12
     * performing a slow scan if one has not already been completed.</p>
12
     * performing a slow scan if one has not already been completed.</p>
13
     *
13
     *
14
     * @return the names of the files which were deselected.
14
     * @return the names of the directories which were deselected.
15
     *
15
     *
16
     * @see #slowScan
16
     * @see #slowScan
17
     */
17
     */
18
    public synchronized String[] getDeselectedFiles() {
18
    public synchronized String[] getDeselectedDirectories() {
19
        slowScan();
19
        slowScan();
20
        String[] files = new String[filesDeselected.size()];
20
        String[] directories = new String[dirsDeselected.size()];
21
        filesDeselected.copyInto(files);
21
        dirsDeselected.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