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;
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/RedirectorElement.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 setErrorEncoding(String errorEncoding) {
1
void setOutputEncoding(String outputEncoding) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.errorEncoding = errorEncoding;
5
        this.outputEncoding = outputEncoding;
6
    }
6
    }
7
    /**
7
    /**
8
     * Set the input encoding.
8
     * Set the error encoding.
9
     *
9
     * @param inputEncoding   <code>String</code>.
10
     * @param errorEncoding   <code>String</code>.
10
     */
11
     */
11
    public void setInputEncoding(String inputEncoding) {
12
    public void setErrorEncoding(String errorEncoding) {
12
        if (isReference()) {
13
        if (isReference()) {
13
            throw tooManyAttributes();
14
            throw tooManyAttributes();
14
        }
15
        }
15
        this.inputEncoding = inputEncoding;
16
        this.errorEncoding = errorEncoding;
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