void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the " + "skipemptyfileset attribute", getLocation()); } /** * Prevent the use of the addsourcefile atribute. * * @ant.attribute ignore="true" * @param b A user supplied boolean we won't accept. */ public void setAddsourcefile(boolean b) { throw new BuildException(getTaskType() + " doesn\'t support the addsourcefile attribute", getLocation());
void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the skipemptyfileset attribute", getLocation()); } /** * This is not allowed for Chmod. * @param b ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ public void setAddsourcefile(boolean b) { throw new BuildException(getTaskType() + " doesn\'t support the addsourcefile attribute", getLocation());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Chmod.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setSkipEmptyFilesets(boolean skip) {
1
void setSkipEmptyFilesets(boolean skip) {
2
        throw new BuildException(getTaskType()
2
        throw new BuildException(getTaskType()
3
 + " doesn\'t support the "
3
            + " doesn\'t support the 
4
                                 + "skipemptyfileset attribute",
5
                                 getLocation());
6
    }
7
    /**
8
     * Prevent the use of the addsourcefile atribute.
9
     *
10
     * @ant.attribute ignore="true"
11
     * @param b A user supplied boolean we won't accept.
4
skipemptyfileset attribute", getLocation());
5
    }
6
    /**
7
     * This is not allowed for Chmod.
8
     * @param b ignored.
9
     * @throws BuildException always.
10
     * @ant.attribute ignore="true"
12
     */
11
     */
13
    public void setAddsourcefile(boolean b) {
12
    public void setAddsourcefile(boolean b) {
14
        throw new BuildException(getTaskType()
13
        throw new BuildException(getTaskType()
15
            + " doesn\'t support the addsourcefile attribute", getLocation());
14
            + " doesn\'t support the addsourcefile attribute", getLocation());
16
    
15
    
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