void handleFlush(String toFlush) { if (newProject != null) { newProject.demuxFlush(toFlush, false); } else { super.handleFlush(toFlush); } } /** * Handle error output. * Send it the the new project if is present, otherwise * call the super class. * @param errorOutputToHandle The string to output. * * @see Task#handleErrorOutput(String) * @since Ant 1.5 */ public void handleErrorOutput(String errorOutputToHandle) { if (newProject != null) { newProject.demuxOutput(errorOutputToHandle, true); } else { super.handleErrorOutput(errorOutputToHandle); } }
void handleErrorOutput(String errorOutputToHandle) { if (newProject != null) { newProject.demuxOutput(errorOutputToHandle, true); } else { super.handleErrorOutput(errorOutputToHandle); } } /** * Handle error output. * Send it the the new project if is present, otherwise * call the super class. * @param errorOutputToFlush The string to output. * @see Task#handleErrorFlush(String) * @since Ant 1.5.2 */ public void handleErrorFlush(String errorOutputToFlush) { if (newProject != null) { newProject.demuxFlush(errorOutputToFlush, true); } else { super.handleErrorFlush(errorOutputToFlush); } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Ant.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Ant.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void handleFlush(String toFlush) {
1
void handleErrorOutput(String errorOutputToHandle) {
2
        if (newProject != null) {
2
        if (newProject != null) {
3
            newProject.demuxFlush(toFlush, false);
3
            newProject.demuxOutput(errorOutputToHandle, true);
4
        } else {
4
        } else {
5
            super.handleFlush(toFlush);
5
            super.handleErrorOutput(errorOutputToHandle);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Handle error output.
9
     * Handle error output.
10
     * Send it the the new project if is present, otherwise
10
     * Send it the the new project if is present, otherwise
11
     * call the super class.
11
     * call the super class.
12
     * @param errorOutputToHandle The string to output.
12
     * @param errorOutputToFlush The string to output.
13
     *
14
     * @see Task#handleErrorOutput(String)
13
     * @see Task#handleErrorFlush(String)
15
     * @since Ant 1.5
14
     * @since Ant 1.5.2
16
     */
15
     */
17
    public void handleErrorOutput(String errorOutputToHandle) {
16
    public void handleErrorFlush(String errorOutputToFlush) {
18
        if (newProject != null) {
17
        if (newProject != null) {
19
            newProject.demuxOutput(errorOutputToHandle, true);
18
            newProject.demuxFlush(errorOutputToFlush, true);
20
        } else {
19
        } else {
21
            super.handleErrorOutput(errorOutputToHandle);
20
            super.handleErrorFlush(errorOutputToFlush);
22
        }
21
        }
23
    }
22
    }
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