void handleFlush(String output) { if (runner != null) { runner.handleFlush(output); if (showOutput) { super.handleFlush(output); } } else { super.handleFlush(output); } } /** * Pass output sent to System.err to the TestRunner so it can * collect it for the formatters. * * @param output output coming from System.err * @since Ant 1.5 */ public void handleErrorOutput(String output) { if (runner != null) { runner.handleErrorOutput(output); if (showOutput) { super.handleErrorOutput(output); } } else { super.handleErrorOutput(output); }
void handleErrorOutput(String output) { if (runner != null) { runner.handleErrorOutput(output); if (showOutput) { super.handleErrorOutput(output); } } else { super.handleErrorOutput(output); } } /** * Pass output sent to System.err to the TestRunner so it can * collect it for the formatters. * * @param output coming from System.err * @since Ant 1.5.2 */ public void handleErrorFlush(String output) { if (runner != null) { runner.handleErrorFlush(output); if (showOutput) { super.handleErrorFlush(output); } } else { super.handleErrorFlush(output); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void handleFlush(String output) {
1
void handleErrorOutput(String output) {
2
        if (runner != null) {
2
        if (runner != null) {
3
            runner.handleFlush(output);
3
            runner.handleErrorOutput(output);
4
            if (showOutput) {
4
            if (showOutput) {
5
                super.handleFlush(output);
5
                super.handleErrorOutput(output);
6
            }
6
            }
7
        } else {
7
        } else {
8
            super.handleFlush(output);
8
            super.handleErrorOutput(output);
9
        }
9
        }
10
    }
10
    }
11
    /**
11
    /**
12
     * Pass output sent to System.err to the TestRunner so it can
12
     * Pass output sent to System.err to the TestRunner so it can
13
     * collect it for the formatters.
13
     * collect it for the formatters.
14
     *
14
     *
15
     * @param output output coming from System.err
15
     * @param output coming from System.err
16
     * @since Ant 1.5
16
     * @since Ant 1.5.2
17
     */
17
     */
18
    public void handleErrorOutput(String output) {
18
    public void handleErrorFlush(String output) {
19
        if (runner != null) {
19
        if (runner != null) {
20
            runner.handleErrorOutput(output);
20
            runner.handleErrorFlush(output);
21
            if (showOutput) {
21
            if (showOutput) {
22
                super.handleErrorOutput(output);
22
                super.handleErrorFlush(output);
23
            }
23
            }
24
        } else {
24
        } else {
25
            super.handleErrorOutput(output);
25
            super.handleErrorFlush(output);
26
        }
26
        }
27
    
27
    
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