void setOutputEncoding(String outputEncoding) { if (outputEncoding == null) { throw new IllegalArgumentException( "outputEncoding must not be null"); } else { this.outputEncoding = outputEncoding; } } /** * Set the error encoding. * * @param errorEncoding <code>String</code>. */ public synchronized void setErrorEncoding(String errorEncoding) { if (errorEncoding == null) { throw new IllegalArgumentException( "errorEncoding must not be null"); } else { this.errorEncoding = errorEncoding; }
void setErrorEncoding(String errorEncoding) { if (errorEncoding == null) { throw new IllegalArgumentException( "errorEncoding must not be null"); } else { this.errorEncoding = errorEncoding; } } /** * Set the input encoding. * * @param inputEncoding <code>String</code>. */ public synchronized void setInputEncoding(String inputEncoding) { if (inputEncoding == null) { throw new IllegalArgumentException( "inputEncoding must not be null"); } else { this.inputEncoding = inputEncoding; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Redirector.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Redirector.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setOutputEncoding(String outputEncoding) {
1
void setErrorEncoding(String errorEncoding) {
2
        if (outputEncoding == null) {
2
        if (errorEncoding == null) {
3
            throw new IllegalArgumentException(
3
            throw new IllegalArgumentException(
4
                "outputEncoding must not be null");
4
                "errorEncoding must not be null");
5
        } else {
5
        } else {
6
            this.outputEncoding = outputEncoding;
6
            this.errorEncoding = errorEncoding;
7
        }
7
        }
8
    }
8
    }
9
    /**
9
    /**
10
     * Set the error encoding.
10
     * Set the input encoding.
11
     *
11
     *
12
     * @param errorEncoding   <code>String</code>.
12
     * @param inputEncoding   <code>String</code>.
13
     */
13
     */
14
    public synchronized void setErrorEncoding(String errorEncoding) {
14
    public synchronized void setInputEncoding(String inputEncoding) {
15
        if (errorEncoding == null) {
15
        if (inputEncoding == null) {
16
            throw new IllegalArgumentException(
16
            throw new IllegalArgumentException(
17
                "errorEncoding must not be null");
17
                "inputEncoding must not be null");
18
        } else {
18
        } else {
19
            this.errorEncoding = errorEncoding;
19
            this.inputEncoding = inputEncoding;
20
        }
20
        }
21
    
21
    
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