public synchronized PatternSet createPatternSet() { if (isReference()) { throw noChildrenAllowed(); } PatternSet patterns = new PatternSet(); additionalPatterns.addElement(patterns); directoryScanner = null; return patterns; } /** * Add a name entry to the include list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createInclude() { if (isReference()) { throw noChildrenAllowed(); } directoryScanner = null; return defaultPatterns.createInclude(); } /** * Add a name entry to the include files list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createIncludesFile() { if (isReference()) { throw noChildrenAllowed(); } directoryScanner = null; return defaultPatterns.createIncludesFile(); } /** * Add a name entry to the exclude list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createExclude() { if (isReference()) { throw noChildrenAllowed(); } directoryScanner = null; return defaultPatterns.createExclude(); } /** * Add a name entry to the excludes files list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createExcludesFile() { if (isReference()) { throw noChildrenAllowed(); } directoryScanner = null; return defaultPatterns.createExcludesFile()
public synchronized PatternSet createPatternSet() { if (isReference()) { throw noChildrenAllowed(); } PatternSet patterns = new PatternSet(); additionalPatterns.addElement(patterns); ds = null; return patterns; } /** * Add a name entry to the include list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createInclude() { if (isReference()) { throw noChildrenAllowed(); } ds = null; return defaultPatterns.createInclude(); } /** * Add a name entry to the include files list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createIncludesFile() { if (isReference()) { throw noChildrenAllowed(); } ds = null; return defaultPatterns.createIncludesFile(); } /** * Add a name entry to the exclude list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createExclude() { if (isReference()) { throw noChildrenAllowed(); } ds = null; return defaultPatterns.createExclude(); } /** * Add a name entry to the excludes files list. * @return <code>PatternSet.NameEntry</code>. */ public synchronized PatternSet.NameEntry createExcludesFile() { if (isReference()) { throw noChildrenAllowed(); } ds = null; return defaultPatterns.createExcludesFile()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AbstractFileSet.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
public synchronized PatternSet createPatternSet() {
1
public synchronized PatternSet createPatternSet() {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw noChildrenAllowed();
3
            throw noChildrenAllowed();
4
        }
4
        }
5
        PatternSet patterns = new PatternSet();
5
        PatternSet patterns = new PatternSet();
6
        additionalPatterns.addElement(patterns);
6
        additionalPatterns.addElement(patterns);
7
        directoryScanner = null;
7
        ds = null;
8
        return patterns;
8
        return patterns;
9
    }
9
    }
10
    /**
10
    /**
11
     * Add a name entry to the include list.
11
     * Add a name entry to the include list.
12
     * @return <code>PatternSet.NameEntry</code>.
12
     * @return <code>PatternSet.NameEntry</code>.
13
     */
13
     */
14
    public synchronized PatternSet.NameEntry createInclude() {
14
    public synchronized PatternSet.NameEntry createInclude() {
15
        if (isReference()) {
15
        if (isReference()) {
16
            throw noChildrenAllowed();
16
            throw noChildrenAllowed();
17
        }
17
        }
18
        directoryScanner = null;
18
        ds = null;
19
        return defaultPatterns.createInclude();
19
        return defaultPatterns.createInclude();
20
    }
20
    }
21
    /**
21
    /**
22
     * Add a name entry to the include files list.
22
     * Add a name entry to the include files list.
23
     * @return <code>PatternSet.NameEntry</code>.
23
     * @return <code>PatternSet.NameEntry</code>.
24
     */
24
     */
25
    public synchronized PatternSet.NameEntry createIncludesFile() {
25
    public synchronized PatternSet.NameEntry createIncludesFile() {
26
        if (isReference()) {
26
        if (isReference()) {
27
            throw noChildrenAllowed();
27
            throw noChildrenAllowed();
28
        }
28
        }
29
        directoryScanner = null;
29
        ds = null;
30
        return defaultPatterns.createIncludesFile();
30
        return defaultPatterns.createIncludesFile();
31
    }
31
    }
32
    /**
32
    /**
33
     * Add a name entry to the exclude list.
33
     * Add a name entry to the exclude list.
34
     * @return <code>PatternSet.NameEntry</code>.
34
     * @return <code>PatternSet.NameEntry</code>.
35
     */
35
     */
36
    public synchronized PatternSet.NameEntry createExclude() {
36
    public synchronized PatternSet.NameEntry createExclude() {
37
        if (isReference()) {
37
        if (isReference()) {
38
            throw noChildrenAllowed();
38
            throw noChildrenAllowed();
39
        }
39
        }
40
        directoryScanner = null;
40
        ds = null;
41
        return defaultPatterns.createExclude();
41
        return defaultPatterns.createExclude();
42
    }
42
    }
43
    /**
43
    /**
44
     * Add a name entry to the excludes files list.
44
     * Add a name entry to the excludes files list.
45
     * @return <code>PatternSet.NameEntry</code>.
45
     * @return <code>PatternSet.NameEntry</code>.
46
     */
46
     */
47
    public synchronized PatternSet.NameEntry createExcludesFile() {
47
    public synchronized PatternSet.NameEntry createExcludesFile() {
48
        if (isReference()) {
48
        if (isReference()) {
49
            throw noChildrenAllowed();
49
            throw noChildrenAllowed();
50
        }
50
        }
51
        directoryScanner = null;
51
        ds = null;
52
        return defaultPatterns.createExcludesFile()
52
        return defaultPatterns.createExcludesFile()
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