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