public void setBeginToken(String startOfToken) { if (isReference()) { throw tooManyAttributes(); } if (startOfToken == null || "".equals(startOfToken)) { throw new BuildException("beginToken must not be empty"); } this.startOfToken = startOfToken;
public void setEndToken(String endOfToken) { if (isReference()) { throw tooManyAttributes(); } if (endOfToken == null || "".equals(endOfToken)) { throw new BuildException("endToken must not be empty"); } this.endOfToken = endOfToken;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/FilterSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/FilterSet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setBeginToken(String startOfToken) {
1
public void setEndToken(String endOfToken) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        if (startOfToken == null || "".equals(startOfToken)) {
5
        if (endOfToken == null || "".equals(endOfToken)) {
6
            throw new BuildException("beginToken must not be empty");
6
            throw new BuildException("endToken must not be empty");
7
        }
7
        }
8
        this.startOfToken = startOfToken;
8
        this.endOfToken = endOfToken;
9
    
9
    
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