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