PatternSet.NameEntry createInclude() { defaultSetDefined = true; return defaultSet.createInclude(); } /** * Add a name entry on the exclude list. * @return a nameentry to be configured. */ public PatternSet.NameEntry createExclude() { defaultSetDefined = true; return defaultSet.createExclude(); } /** * Add a set of patterns. * @return a patternset to be configured. */ public PatternSet createPatternSet() { defaultSetDefined = true; return defaultSet.createPatternSet(); } /** * Sets the set of include patterns. Patterns may be separated by a comma * or a space. * * @param includes the string containing the include patterns. */ public 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);
PatternSet.NameEntry createExclude() { usedMatchingTask = true; return super.createExclude(); } /** * add a name entry on the include files list * @return an NameEntry object to be configured */ public PatternSet.NameEntry createExcludesFile() { usedMatchingTask = true; return super.createExcludesFile(); } /** * add a set of patterns * @return PatternSet object to be configured */ public PatternSet createPatternSet() { usedMatchingTask = true; return super.createPatternSet(); } /** * Sets the set of include patterns. Patterns may be separated by a comma * or a space. * * @param includes the string containing the include patterns */ public 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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Chmod.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Delete.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
PatternSet.NameEntry createInclude() {
1
PatternSet.NameEntry createExclude() {
2
        defaultSetDefined = true;
2
        usedMatchingTask = true;
3
        return defaultSet.createInclude();
3
        return super.createExclude();
4
    }
4
    }
5
    /**
5
    /**
6
     * Add a name entry on the exclude list.
6
     * add a name entry on the include files list
7
     * @return a nameentry to be configured.
7
     * @return an NameEntry object to be configured
8
     */
8
     */
9
    public PatternSet.NameEntry createExclude() {
9
    public PatternSet.NameEntry createExcludesFile() {
10
        defaultSetDefined = true;
10
        usedMatchingTask = true;
11
        return defaultSet.createExclude();
11
        return super.createExcludesFile();
12
    }
12
    }
13
    /**
13
    /**
14
     * Add a set of patterns.
14
     * add a set of patterns
15
     * @return a patternset to be configured.
15
     * @return PatternSet object to be configured
16
     */
16
     */
17
    public PatternSet createPatternSet() {
17
    public PatternSet createPatternSet() {
18
        defaultSetDefined = true;
18
        usedMatchingTask = true;
19
        return defaultSet.createPatternSet();
19
        return super.createPatternSet();
20
    }
20
    }
21
    /**
21
    /**
22
     * Sets the set of include patterns. Patterns may be separated by a comma
22
     * Sets the set of include patterns. Patterns may be separated by a comma
23
     * or a space.
23
     * or a space.
24
     *
24
     *
25
     * @param includes the string containing the include patterns.
25
     * @param includes the string containing the include patterns
26
     */
26
     */
27
    public void setIncludes(String includes) {
27
    public void setIncludes(String includes) {
28
        defaultSetDefined = true;
28
        usedMatchingTask = true;
29
        defaultSet.setIncludes(includes);
29
        super.setIncludes(includes);
30
    }
30
    }
31
    /**
31
    /**
32
     * Sets the set of exclude patterns. Patterns may be separated by a comma
32
     * Sets the set of exclude patterns. Patterns may be separated by a comma
33
     * or a space.
33
     * or a space.
34
     *
34
     *
35
     * @param excludes the string containing the exclude patterns.
35
     * @param excludes the string containing the exclude patterns
36
     */
36
     */
37
    public void setExcludes(String excludes) {
37
    public void setExcludes(String excludes) {
38
        defaultSetDefined = true;
38
        usedMatchingTask = true;
39
        defaultSet.setExcludes(excludes);
39
        super.setExcludes(excludes);
40
    }
40
    }
41
    /**
41
    /**
42
     * Sets whether default exclusions should be used or not.
42
     * Sets whether default exclusions should be used or not.
43
     *
43
     *
44
     * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions
44
     * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions
45
     *                           should be used, "false"|"off"|"no" when they
45
     *                           should be used, "false"|"off"|"no" when they
46
     *                           shouldn't be used.
46
     *                           shouldn't be used.
47
     */
47
     */
48
    public void setDefaultexcludes(boolean useDefaultExcludes) {
48
    public void setDefaultexcludes(boolean useDefaultExcludes) {
49
        defaultSetDefined = true;
49
        usedMatchingTask = true;
50
        defaultSet.setDefaultexcludes(useDefaultExcludes);
50
        super.setDefaultexcludes(useDefaultExcludes);
51
    
51
    
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