NameEntry createExclude() { if (isReference()) { throw noChildrenAllowed(); } return addPatternToList(excludeList); } /** * add a name entry on the exclude files list * @return a nested excludesfile element to be configured. */ public NameEntry createExcludesFile() { if (isReference()) { throw noChildrenAllowed(); } return addPatternToList(excludesFileList);
NameEntry createInclude() { if (isReference()) { throw noChildrenAllowed(); } return addPatternToList(includeList); } /** * add a name entry on the include files list * @return a nested includesfile element to be configured. */ public NameEntry createIncludesFile() { if (isReference()) { throw noChildrenAllowed(); } return addPatternToList(includesFileList);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PatternSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PatternSet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
NameEntry createExclude() {
1
NameEntry createInclude() {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw noChildrenAllowed();
3
            throw noChildrenAllowed();
4
        }
4
        }
5
        return addPatternToList(excludeList);
5
        return addPatternToList(includeList);
6
    }
6
    }
7
    /**
7
    /**
8
     * add a name entry on the exclude files list
8
     * add a name entry on the include files list
9
     * @return a nested excludesfile element to be configured.
9
     * @return a nested includesfile element to be configured.
10
     */
10
     */
11
    public NameEntry createExcludesFile() {
11
    public NameEntry createIncludesFile() {
12
        if (isReference()) {
12
        if (isReference()) {
13
            throw noChildrenAllowed();
13
            throw noChildrenAllowed();
14
        }
14
        }
15
        return addPatternToList(excludesFileList);
15
        return addPatternToList(includesFileList);
16
    
16
    
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