if (isWarning) {
task.handleErrorOutput(output);
} else {
task.handleOutput(output);
}
if (redirector.getErrorStream() != null) {
redirector.handleErrorFlush(output);
} else {
super.handleErrorOutput(output);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Project.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Java.java
|
Method name: void demuxOutput(String, boolean)
|
|
Method name: void handleErrorFlush(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (isWarning) {↵ | | 1 | if (redirector.getErrorStream() != null) {↵
|
2 | task.handleErrorOutput(output);↵ | | 2 | redirector.handleErrorFlush(output);↵
|
3 | } else {↵ | | 3 | } else {↵
|
4 | task.handleOutput(output);↵ | | 4 | super.handleErrorOutput(output);↵
|
5 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |