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/optional/junit/JUnitTask.java | |||
Method name: void demuxFlush(String, boolean)
|
Method name: void handleOutput(String)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | if (isError) {↵ | 1 | if (outputToFormatters) {↵ | |
2 | task.handleErrorFlush(output);↵ | 2 | runner.handleOutput(output);↵ | |
3 | } else↵ | 3 | }↵ | |
4 | {↵ | 4 | if (showOutput) {↵ | |
5 | task.handleFlush(output);↵ | 5 | super.handleOutput(output);↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 | 7 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (isError) |
| 4 | if (outputToFormatters) | ||||||||||
| 5 | runner.handleOutput(output); | ||||||||||||
5 | task.handleErrorFlush(output); | | ||||||||||||
else | | |||||||||||||
6 | task.handleFlush(output); | |
Row | Violation |
---|