void setOutput(File out) { if (isReference()) { throw tooManyAttributes(); } if (out == null) { throw new IllegalArgumentException("output file specified as null"); } usingOutput = true; outputMapper = createMergeMapper(out); } /** * Set the output encoding. * @param outputEncoding <code>String</code>. */ public void setOutputEncoding(String outputEncoding) { if (isReference()) { throw tooManyAttributes(); } this.outputEncoding = outputEncoding;
void setError(File error) { if (isReference()) { throw tooManyAttributes(); } if (error == null) { throw new IllegalArgumentException("error file specified as null"); } usingError = true; errorMapper = createMergeMapper(error); } /** * Property name whose value should be set to the output of * the process. * @param outputProperty the name of the property to be set with the * task's output. */ public void setOutputProperty(String outputProperty) { if (isReference()) { throw tooManyAttributes(); } this.outputProperty = outputProperty;
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 setOutput(File out) {
1
void setError(File error) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        if (out == null) {
5
        if (error == null) {
6
            throw new IllegalArgumentException("output file specified as null");
6
            throw new IllegalArgumentException("error file specified as null");
7
        }
7
        }
8
        usingOutput = true;
8
        usingError = true;
9
        outputMapper = createMergeMapper(out);
9
        errorMapper = createMergeMapper(error);
10
    }
10
    }
11
    /**
11
    /**
12
     * Set the output encoding.
12
     * 
13
     * @param outputEncoding   <code>String</code>
13
Property name whose value should be set to the output of
14
     * the process.
15
     * @param outputProperty the name of the property to be set with the
14
.
16
     *        task's output.
15
     */
17
     */
16
    public void setOutputEncoding(String outputEncoding) {
18
    public void setOutputProperty(String outputProperty) {
17
        if (isReference()) {
19
        if (isReference()) {
18
            throw tooManyAttributes();
20
            throw tooManyAttributes();
19
        }
21
        }
20
        this.outputEncoding = outputEncoding;
22
        this.outputProperty = outputProperty;
21
    
23
    
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