public void handleFlush(String output) { if (callee != null) { callee.handleFlush(output); } else { super.handleFlush(output); } } /** * Handle error output. * Send it the the new project if is present, otherwise * call the super class. * @param output The string to output. * * @see Task#handleErrorOutput(String) * @since Ant 1.5 */ public void handleErrorOutput(String output) { if (callee != null) { callee.handleErrorOutput(output); } else { super.handleErrorOutput(output); } } /** * Handle error output. * Send it the the new project if is present, otherwise * call the super class. * @param output The string to output. * @see Task#handleErrorFlush(String) * @since Ant 1.5.2 */ public void handleErrorFlush(String output) { if (callee != null) { callee.handleErrorFlush(output); } else { super.handleErrorFlush(output);
public 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); } } /** * 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/CallTarget.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
public void handleFlush(String output) {
1
public void handleFlush(String output) {
2
        if (callee != null) {
2
        if (ant != null) {
3
            callee.handleFlush(output);
3
            ant.handleFlush(output);
4
        } else {
4
        } else {
5
            super.handleFlush(output);
5
            super.handleFlush(output);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Handle error output.
9
     * 
10
     * Send it the the new project if is present, otherwise
11
     * call the super class.
10
Pass output sent to System.err to the new project.
11
     *
12
     * @param output The string to output.
12
     * @param output The 
13
     *
14
     * @see Task#handleErrorOutput(String)
13
error output to log. Should not be <code>null</code>.
14
     *
15
     * @since Ant 1.5
15
     * @since Ant 1.6.2
16
     */
16
     */
17
    public void handleErrorOutput(String output) {
17
    public void handleErrorOutput(String output) {
18
        if (callee != null) {
18
        if (ant != null) {
19
            callee.handleErrorOutput(output);
19
            ant.handleErrorOutput(output);
20
        } else {
20
        } else {
21
            super.handleErrorOutput(output);
21
            super.handleErrorOutput(output);
22
        }
22
        }
23
    }
23
    }
24
    /**
24
    /**
25
     * Handle error output.
25
     * 
26
     * Send it the the new project if is present, otherwise
27
     * call the super class.
26
Pass output sent to System.err to the new project.
27
     *
28
     * @param output The string to output.
28
     * @param output The 
29
     * @see Task#handleErrorFlush(String)
29
error output to log. Should not be <code>null</code>.
30
     *
30
     * @since Ant 1.5.2
31
     * @since Ant 1.6.2
31
     */
32
     */
32
    public void handleErrorFlush(String output) {
33
    public void handleErrorFlush(String output) {
33
        if (callee != null) {
34
        if (ant != null) {
34
            callee.handleErrorFlush(output);
35
            ant.handleErrorFlush(output);
35
        } else {
36
        } else {
36
            super.handleErrorFlush(output);
37
            super.handleErrorFlush(output);
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