void setExcludes(String excludes) { checkAttributesAllowed(); defaultPatterns.setExcludes(excludes); ds = null; } /** * Append <code>excludes</code> to the current list of include * patterns. * * @param excludes array containing the exclude patterns. */ public synchronized void appendExcludes(String[] excludes) { checkAttributesAllowed(); if (excludes != null) { for (int i = 0; i < excludes.length; i++) { defaultPatterns.createExclude().setName(excludes[i]); } ds = null; }
void setIncludes(String includes) { checkAttributesAllowed(); defaultPatterns.setIncludes(includes); ds = null; } /** * Append <code>includes</code> to the current list of include * patterns. * * @param includes array containing the include patterns. */ public synchronized void appendIncludes(String[] includes) { checkAttributesAllowed(); if (includes != null) { for (int i = 0; i < includes.length; i++) { defaultPatterns.createInclude().setName(includes[i]); } ds = null; }
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 setExcludes(String excludes) {
1
void setIncludes(String includes) {
2
        checkAttributesAllowed();
2
        checkAttributesAllowed();
3
        defaultPatterns.setExcludes(excludes);
3
        defaultPatterns.setIncludes(includes);
4
        ds = null;
4
        ds = null;
5
    }
5
    }
6
    /**
6
    /**
7
     * Append <code>excludes</code> to the current list of include
7
     * Append <code>includes</code> to the current list of include
8
     * patterns.
8
     * patterns.
9
     *
9
     *
10
     * @param excludes array containing the exclude patterns.
10
     * @param includes array containing the include patterns.
11
     */
11
     */
12
    public synchronized void appendExcludes(String[] excludes) {
12
    public synchronized void appendIncludes(String[] includes) {
13
        checkAttributesAllowed();
13
        checkAttributesAllowed();
14
        if (excludes != null) {
14
        if (includes != null) {
15
            for (int i = 0; i < excludes.length; i++) {
15
            for (int i = 0; i < includes.length; i++) {
16
                defaultPatterns.createExclude().setName(excludes[i]);
16
                defaultPatterns.createInclude().setName(includes[i]);
17
            }
17
            }
18
            ds = null;
18
            ds = null;
19
        }
19
        }
20
    
20
    
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