File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Redirector.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Redirector.java | |||
Method name: void createStreams()
|
Method name: void createStreams()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (out != null && out.length > 0) {↵ | |||
2 | String logHead = new StringBuffer("Output ").append(↵ | 1 | String logHead = new StringBuffer("Error ").append(↵ | |
3 | ((append) ? "appended" : "redirected")).append(↵ | 2 | ((append) ? "appended" : "redirected")).append(↵ | |
4 | " to ").toString();↵ | 3 | " to ").toString();↵ | |
5 | outputStream = foldFiles(out, logHead, Project.MSG_VERBOSE);↵ | 4 | errorStream = foldFiles(error, logHead, Project.MSG_VERBOSE); | |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 2 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | String logHead = new StringBuffer("Output ").append(((append) ? "appended" : "redirected")).append(" to ").toString(); |
| 12 | String logHead = new StringBuffer("Error ").append(((append) ? "appended" : "redirected")).append(" to ").toString(); | |||||||||||||
3 | outputStream = foldFiles(out, logHead, Project.MSG_VERBOSE); |
| 13 | errorStream = foldFiles(error, logHead, Project.MSG_VERBOSE); |
Row | Violation |
---|