void setDefaultexcludes(boolean useDefaultExcludes) { if (isReference()) { throw tooManyAttributes(); } this.useDefaultExcludes = useDefaultExcludes; directoryScanner = null; } /** * Whether default exclusions should be used or not. * @return the default exclusions value. * @since Ant 1.6.3 */ public synchronized boolean getDefaultexcludes() { return (isReference()) ? getRef(getProject()).getDefaultexcludes() : useDefaultExcludes; } /** * Sets case sensitivity of the file system. * * @param caseSensitive <code>boolean</code>. */ public synchronized void setCaseSensitive(boolean caseSensitive) { if (isReference()) { throw tooManyAttributes(); } this.caseSensitive = caseSensitive; directoryScanner = null; } /** * Find out if the fileset is case sensitive. * * @return <code>boolean</code> indicating whether the fileset is * case sensitive. * * @since Ant 1.7 */ public synchronized boolean isCaseSensitive() { return (isReference()) ? getRef(getProject()).isCaseSensitive() : caseSensitive;
void setCaseSensitive(boolean caseSensitive) { if (isReference()) { throw tooManyAttributes(); } this.caseSensitive = caseSensitive; directoryScanner = null; } /** * Find out if the fileset is case sensitive. * * @return <code>boolean</code> indicating whether the fileset is * case sensitive. * * @since Ant 1.7 */ public synchronized boolean isCaseSensitive() { return (isReference()) ? getRef(getProject()).isCaseSensitive() : caseSensitive; } /** * Sets whether or not symbolic links should be followed. * * @param followSymlinks whether or not symbolic links should be followed. */ public synchronized void setFollowSymlinks(boolean followSymlinks) { if (isReference()) { throw tooManyAttributes(); } this.followSymlinks = followSymlinks; directoryScanner = null; } /** * Find out if the fileset wants to follow symbolic links. * * @return <code>boolean</code> indicating whether symbolic links * should be followed. * * @since Ant 1.6 */ public synchronized boolean isFollowSymlinks() { return (isReference()) ? getRef(getProject()).isFollowSymlinks() : followSymlinks;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AbstractFileSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AbstractFileSet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setDefaultexcludes(boolean useDefaultExcludes) {
1
void setCaseSensitive(boolean caseSensitive) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.useDefaultExcludes = useDefaultExcludes;
5
        this.caseSensitive = caseSensitive;
6
        directoryScanner = null;
6
        directoryScanner = null;
7
    }
7
    }
8
    /**
8
    /**
9
     * Whether default exclusions should be used or not.
9
     * Find out if the fileset is case sensitive.
10
     *
10
     * @return the default exclusions valu
11
     * @return <code>boolean</code> indicating whether the fileset is
11
e.
12
     * case sensitive.
13
     *
12
     * @since Ant 1.6.3
14
     * @since Ant 1.7
13
     */
15
     */
14
    public synchronized boolean getDefaultexcludes() {
16
    public synchronized boolean isCaseSensitive() {
15
        return (isReference())
17
        return (isReference())
16
            ? getRef(getProject()).getDefaultexcludes() : useDefaultExcludes;
18
            ? getRef(getProject()).isCaseSensitive() : caseSensitive;
17
    }
19
    }
18
    /**
20
    /**
19
     * Sets case sensitivity of the file system.
21
     * Sets 
20
     *
21
     * @param caseSensitive <code>boolean</code>
22
whether or not symbolic links should be followed.
23
     *
22
.
24
     * @param followSymlinks whether or not symbolic links should be followed.
23
     */
25
     */
24
    public synchronized void setCaseSensitive(boolean caseSensitive) {
26
    public synchronized void setFollowSymlinks(boolean followSymlinks) {
25
        if (isReference()) {
27
        if (isReference()) {
26
            throw tooManyAttributes();
28
            throw tooManyAttributes();
27
        }
29
        }
28
        this.caseSensitive = caseSensitive;
30
        this.followSymlinks = followSymlinks;
29
        directoryScanner = null;
31
        directoryScanner = null;
30
    }
32
    }
31
    /**
33
    /**
32
     * Find out if the fileset is case sensitive.
34
     * Find out if the fileset wants to follow symbolic links.
33
     *
35
     *
34
     * @return <code>boolean</code> indicating whether the fileset is
36
     * @return <code>boolean</code> indicating whether 
35
     * case sensitive
37
symbolic links
36
.
38
     *         should be followed.
37
     *
39
     *
38
     * @since Ant 1.7
40
     * @since Ant 1.6
39
     */
41
     */
40
    public synchronized boolean isCaseSensitive() {
42
    public synchronized boolean isFollowSymlinks() {
41
        return (isReference())
43
        return (isReference())
42
            ? getRef(getProject()).isCaseSensitive() : caseSensitive;
44
            ? getRef(getProject()).isFollowSymlinks() : followSymlinks;
43
    
45
    
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