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;
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 setFollowSymlinks(boolean followSymlinks) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.useDefaultExcludes = useDefaultExcludes;
5
        this.followSymlinks = followSymlinks;
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 wants to follow symbolic links.
10
     *
10
     * @return the default exclusions value
11
     * @return <code>boolean</code> indicating whether symbolic links
11
.
12
     *         should be followed.
13
     *
12
     * @since Ant 1.6.3
14
     * @since Ant 1.6
13
     */
15
     */
14
    public synchronized boolean getDefaultexcludes() {
16
    public synchronized boolean isFollowSymlinks() {
15
        return (isReference())
17
        return (isReference())
16
            ? getRef(getProject()).getDefaultexcludes() : useDefaultExcludes;
18
            ? getRef(getProject()).isFollowSymlinks() : followSymlinks;
17
    
19
    
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