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; }
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 setFollowSymlinks(boolean followSymlinks) {
1
void setDefaultexcludes(boolean useDefaultExcludes) {
2
        checkAttributesAllowed();
2
        checkAttributesAllowed();
3
        this.followSymlinks = followSymlinks;
3
        this.useDefaultExcludes = useDefaultExcludes;
4
        ds = null;
4
        ds = null;
5
    }
5
    }
6
    /**
6
    /**
7
     * Find out whether symbolic links should be followed.
7
     * Get whether 
8
     *
9
     * @return <code>boolean</code> indicating whether symbolic links
10
     *         should be followed
8
default exclusions should be used or not.
11
.
9
     * @return the defaultexclusions value.
12
     */
10
     */
13
    public synchronized boolean isFollowSymlinks() {
11
    public synchronized boolean getDefaultexcludes() {
14
        return (isReference())
12
        return (isReference())
15
            ? getRef().isFollowSymlinks() : followSymlinks;
13
            ? getRef().getDefaultexcludes() : useDefaultExcludes;
16
    }
14
    }
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