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 setErrorEncoding(String errorEncoding) { if (isReference()) { throw tooManyAttributes(); } this.errorEncoding = errorEncoding; } /** * Set the input encoding. * @param inputEncoding <code>String</code>. */ public void setInputEncoding(String inputEncoding) { if (isReference()) { throw tooManyAttributes(); } this.inputEncoding = inputEncoding;
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 setErrorEncoding(String errorEncoding) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.from = from;
5
        this.errorEncoding = errorEncoding;
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
input encoding.
10
     * @param inputEncoding   <code>String</code>.
10
     */
11
     */
11
    public void setTo(String to) {
12
    public void setInputEncoding(String inputEncoding) {
12
        if (isReference()) {
13
        if (isReference()) {
13
            throw tooManyAttributes();
14
            throw tooManyAttributes();
14
        }
15
        }
15
        this.to = to;
16
        this.inputEncoding = inputEncoding;
16
    
17
    
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