void setCaseSensitive(boolean caseSensitive) { checkAttributesAllowed(); this.caseSensitive = caseSensitive; ds = null; } /** * Find out if this Files collection is case-sensitive. * * @return <code>boolean</code> indicating whether the Files * collection is case-sensitive. */ public synchronized boolean isCaseSensitive() { return (isReference()) ? getRef().isCaseSensitive() : caseSensitive; } /** * Set whether or not symbolic links should be followed. * * @param followSymlinks whether or not symbolic links should be followed. */ public synchronized void setFollowSymlinks(boolean followSymlinks) { checkAttributesAllowed(); this.followSymlinks = followSymlinks; ds = null; } /** * Find out whether symbolic links should be followed. * * @return <code>boolean</code> indicating whether symbolic links * should be followed. */ public synchronized boolean isFollowSymlinks() { return (isReference()) ? getRef().isFollowSymlinks() : followSymlinks;
void setDefaultexcludes(boolean useDefaultExcludes) { checkAttributesAllowed(); this.useDefaultExcludes = useDefaultExcludes; ds = null; } /** * Get whether default exclusions should be used or not. * @return the defaultexclusions value. */ public synchronized boolean getDefaultexcludes() { return (isReference()) ? getRef().getDefaultexcludes() : useDefaultExcludes; } /** * Set case-sensitivity of the Files collection. * * @param caseSensitive <code>boolean</code>. */ public synchronized void setCaseSensitive(boolean caseSensitive) { checkAttributesAllowed(); this.caseSensitive = caseSensitive; ds = null; } /** * Find out if this Files collection is case-sensitive. * * @return <code>boolean</code> indicating whether the Files * collection is case-sensitive. */ public synchronized boolean isCaseSensitive() { return (isReference()) ? getRef().isCaseSensitive() : caseSensitive;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Files.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Files.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setCaseSensitive(boolean caseSensitive) {
1
void setDefaultexcludes(boolean useDefaultExcludes) {
2
        checkAttributesAllowed();
2
        checkAttributesAllowed();
3
        this.caseSensitive = caseSensitive;
3
        this.useDefaultExcludes = useDefaultExcludes;
4
        ds = null;
4
        ds = null;
5
    }
5
    }
6
    /**
6
    /**
7
     * Find out if this Files collection is case-sensitive.
7
     * 
8
     *
9
     * @return <code>boolean</code> indicating whether the Files
10
     * collection is case-sensitiv
8
Get whether default exclusions should be used or not.
11
e.
9
     * @return the defaultexclusions value.
12
     */
10
     */
13
    public synchronized boolean isCaseSensitive() {
11
    public synchronized boolean getDefaultexcludes() {
14
        return (isReference())
12
        return (isReference())
15
            ? getRef().isCaseSensitive() : caseSensitive;
13
            ? getRef().getDefaultexcludes() : useDefaultExcludes;
16
    }
14
    }
17
    /**
15
    /**
18
     * Set whether or not symbolic links should be followed.
16
     * Set 
19
     *
20
     * @param followSymlinks whether or not symbolic links should be followed
17
case-sensitivity of the Files collection.
18
     *
21
.
19
     * @param caseSensitive <code>boolean</code>.
22
     */
20
     */
23
    public synchronized void setFollowSymlinks(boolean followSymlinks) {
21
    public synchronized void setCaseSensitive(boolean caseSensitive) {
24
        checkAttributesAllowed();
22
        checkAttributesAllowed();
25
        this.followSymlinks = followSymlinks;
23
        this.caseSensitive = caseSensitive;
26
        ds = null;
24
        ds = null;
27
    }
25
    }
28
    /**
26
    /**
29
     * Find out whether symbolic links should be followed.
27
     * Find out if this Files collection is case-sensitive.
30
     *
28
     *
31
     * @return <code>boolean</code> indicating whether symbolic links
29
     * @return <code>boolean</code> indicating whether 
32
     *         should be followed
30
the Files
33
.
31
     * collection is case-sensitive.
34
     */
32
     */
35
    public synchronized boolean isFollowSymlinks() {
33
    public synchronized boolean isCaseSensitive() {
36
        return (isReference())
34
        return (isReference())
37
            ? getRef().isFollowSymlinks() : followSymlinks;
35
            ? getRef().isCaseSensitive() : caseSensitive;
38
    
36
    
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