void setIncludes(String includes) { usedMatchingTask = true; super.setIncludes(includes); } /** * Sets the set of exclude patterns. Patterns may be separated by a comma * or a space. * * @param excludes the string containing the exclude patterns */ public void setExcludes(String excludes) { usedMatchingTask = true; super.setExcludes(excludes); } /** * Sets whether default exclusions should be used or not. * * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions * should be used, "false"|"off"|"no" when they * shouldn't be used. */ public void setDefaultexcludes(boolean useDefaultExcludes) { usedMatchingTask = true; super.setDefaultexcludes(useDefaultExcludes);
void setIncludes(String includes) { defaultSetDefined = true; defaultSet.setIncludes(includes); } /** * Sets the set of exclude patterns. Patterns may be separated by a comma * or a space. * * @param excludes the string containing the exclude patterns. */ public void setExcludes(String excludes) { defaultSetDefined = true; defaultSet.setExcludes(excludes); } /** * Sets whether default exclusions should be used or not. * * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions * should be used, "false"|"off"|"no" when they * shouldn't be used. */ public void setDefaultexcludes(boolean useDefaultExcludes) { defaultSetDefined = true; defaultSet.setDefaultexcludes(useDefaultExcludes);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Delete.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 setIncludes(String includes) {
1
void setIncludes(String includes) {
2
        usedMatchingTask = true;
2
        defaultSetDefined = true;
3
        super.setIncludes(includes);
3
        defaultSet.setIncludes(includes);
4
    }
4
    }
5
    /**
5
    /**
6
     * Sets the set of exclude patterns. Patterns may be separated by a comma
6
     * Sets the set of exclude patterns. Patterns may be separated by a comma
7
     * or a space.
7
     * or a space.
8
     *
8
     *
9
     * @param excludes the string containing the exclude patterns
9
     * @param excludes the string containing the exclude patterns.
10
     */
10
     */
11
    public void setExcludes(String excludes) {
11
    public void setExcludes(String excludes) {
12
        usedMatchingTask = true;
12
        defaultSetDefined = true;
13
        super.setExcludes(excludes);
13
        defaultSet.setExcludes(excludes);
14
    }
14
    }
15
    /**
15
    /**
16
     * Sets whether default exclusions should be used or not.
16
     * Sets whether default exclusions should be used or not.
17
     *
17
     *
18
     * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions
18
     * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions
19
     *                           should be used, "false"|"off"|"no" when they
19
     *                           should be used, "false"|"off"|"no" when they
20
     *                           shouldn't be used.
20
     *                           shouldn't be used.
21
     */
21
     */
22
    public void setDefaultexcludes(boolean useDefaultExcludes) {
22
    public void setDefaultexcludes(boolean useDefaultExcludes) {
23
        usedMatchingTask = true;
23
        defaultSetDefined = true;
24
        super.setDefaultexcludes(useDefaultExcludes);
24
        defaultSet.setDefaultexcludes(useDefaultExcludes);
25
    
25
    
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