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