void setFrom(String from) { if (isReference()) { throw tooManyAttributes(); } this.from = from; } /** * Set the argument to FileNameMapper.setTo * @param to the to attribute to pass to the FileNameMapper */ public void setTo(String to) { if (isReference()) { throw tooManyAttributes(); } this.to = to;
void setOutputEncoding(String outputEncoding) { if (isReference()) { throw tooManyAttributes(); } this.outputEncoding = outputEncoding; } /** * Set the error encoding. * * @param errorEncoding <code>String</code>. */ public void setErrorEncoding(String errorEncoding) { if (isReference()) { throw tooManyAttributes(); } this.errorEncoding = errorEncoding;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Mapper.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setFrom(String from) {
1
void setOutputEncoding(String outputEncoding) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.from = from;
5
        this.outputEncoding = outputEncoding;
6
    }
6
    }
7
    /**
7
    /**
8
     * Set the argument to FileNameMapper.setTo
8
     * Set the 
9
     * @param to the to attribute to pass to the FileNameMapper
9
error encoding.
10
     *
11
     * @param errorEncoding   <code>String</code>.
10
     */
12
     */
11
    public void setTo(String to) {
13
    public void setErrorEncoding(String errorEncoding) {
12
        if (isReference()) {
14
        if (isReference()) {
13
            throw tooManyAttributes();
15
            throw tooManyAttributes();
14
        }
16
        }
15
        this.to = to;
17
        this.errorEncoding = errorEncoding;
16
    
18
    
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