protected void handleOutput(String line) {
line = line.trim();
if (line.length() != 0 && !line.equals(randomOutValue)) {
String message = "Received = [" + line + "], expected = ["
+ randomOutValue + "]";
throw new BuildException(message);
}
outputReceived = true;
protected void handleErrorOutput(String line) {
line = line.trim();
if (line.length() != 0 && !line.equals(randomErrValue)) {
String message = "Received = [" + line + "], expected = ["
+ randomErrValue + "]";
throw new BuildException(message);
}
errorReceived = true;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/DemuxOutputTask.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/DemuxOutputTask.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | protected void handleOutput(String line) {↵ | | 1 | protected void handleErrorOutput(String line) {↵
|
2 | line = line.trim();↵ | | 2 | line = line.trim();↵
|
3 | if (line.length() != 0 && !line.equals(randomOutValue)) {↵ | | 3 | if (line.length() != 0 && !line.equals(randomErrValue)) {↵
|
4 | String message = "Received = [" + line + "], expected = ["↵ | | 4 | String message = "Received = [" + line + "], expected = ["↵
|
5 | + randomOutValue + "]";↵ | | 5 | + randomErrValue + "]";↵
|
6 | throw new BuildException(message);↵ | | 6 | throw new BuildException(message);↵
|
7 | }↵ | | 7 | }↵
|
8 | outputReceived = true;↵ | | 8 | errorReceived = true;↵
|
9 | | | 9 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |