void handleFlush(String output) { if (ant != null) { ant.handleFlush(output); } else { super.handleFlush(output); } } /** * Pass output sent to System.err to the new project. * * @param output The error output to log. Should not be <code>null</code>. * * @since Ant 1.6.2 */ public void handleErrorOutput(String output) { if (ant != null) { ant.handleErrorOutput(output); } else { super.handleErrorOutput(output); }
void handleErrorOutput(String output) { if (ant != null) { ant.handleErrorOutput(output); } else { super.handleErrorOutput(output); } } /** * Pass output sent to System.err to the new project. * * @param output The error output to log. Should not be <code>null</code>. * * @since Ant 1.6.2 */ public void handleErrorFlush(String output) { if (ant != null) { ant.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/SubAnt.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/SubAnt.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 (ant != null) {
2
        if (ant != null) {
3
            ant.handleFlush(output);
3
            ant.handleErrorOutput(output);
4
        } else {
4
        } else {
5
            super.handleFlush(output);
5
            super.handleErrorOutput(output);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Pass output sent to System.err to the new project.
9
     * Pass output sent to System.err to the new project.
10
     *
10
     *
11
     * @param output The error output to log. Should not be <code>null</code>.
11
     * @param output The error output to log. Should not be <code>null</code>.
12
     *
12
     *
13
     * @since Ant 1.6.2
13
     * @since Ant 1.6.2
14
     */
14
     */
15
    public void handleErrorOutput(String output) {
15
    public void handleErrorFlush(String output) {
16
        if (ant != null) {
16
        if (ant != null) {
17
            ant.handleErrorOutput(output);
17
            ant.handleErrorFlush(output);
18
        } else {
18
        } else {
19
            super.handleErrorOutput(output);
19
            super.handleErrorFlush(output);
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