File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java | |||
Method name: void configure(Redirector, String)
|
Method name: void configure(Redirector, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | redirector.setOutputProperty(outputProperty);↵ | 1 | redirector.setErrorFilterChains(errorFilterChains);↵ | |
2 | }↵ | 2 | }↵ | |
3 | if (errorProperty != null) {↵ | 3 | if (inputEncoding != null) {↵ | |
4 | redirector.setErrorProperty(errorProperty);↵ | 4 | redirector.setInputEncoding(inputEncoding);↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (inputString != null) {↵ | 6 | if (outputEncoding != null) {↵ | |
7 | redirector.setInputString(inputString);↵ | 7 | redirector.setOutputEncoding(outputEncoding);↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (errorProperty != null) |
| 44 | if (inputEncoding != null) | |||||||||||||||
15 | redirector.setErrorProperty(errorProperty); |
| 45 | redirector.setInputEncoding(inputEncoding); | |||||||||||||||
16 | if (inputString != null) |
| 46 | if (outputEncoding != null) | |||||||||||||||
17 | redirector.setInputString(inputString); |
| 47 | redirector.setOutputEncoding(outputEncoding); |
Row | Violation |
---|---|
1 | Expression redirector.setErrorProperty(errorProperty) is a void method call, and thus it cannot be parameterized |
2 | Expression redirector.setInputEncoding(inputEncoding) is a void method call, and thus it cannot be parameterized |
3 | Expression redirector.setInputString(inputString) is a void method call, and thus it cannot be parameterized |
4 | Expression redirector.setOutputEncoding(outputEncoding) is a void method call, and thus it cannot be parameterized |