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.setErrorFilterChains(errorFilterChains);↵ | 1 | redirector.setOutputProperty(outputProperty);↵ | |
2 | }↵ | 2 | }↵ | |
3 | if (inputEncoding != null) {↵ | 3 | if (errorProperty != null) {↵ | |
4 | redirector.setInputEncoding(inputEncoding);↵ | 4 | redirector.setErrorProperty(errorProperty);↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (outputEncoding != null) {↵ | 6 | if (inputString != null) {↵ | |
7 | redirector.setOutputEncoding(outputEncoding);↵ | 7 | redirector.setInputString(inputString);↵ | |
8 | } | 8 |
| |
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.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) | 18.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44 | if (inputEncoding != null) |
| 16 | if (inputString != null) | |||||||||||||||||
45 | redirector.setInputEncoding(inputEncoding); |
| 17 | redirector.setInputString(inputString); | |||||||||||||||||
46 | if (outputEncoding != null) |
| 14 | if (errorProperty != null) | |||||||||||||||||
47 | redirector.setOutputEncoding(outputEncoding); |
| 15 | redirector.setErrorProperty(errorProperty); |
Row | Violation |
---|---|
1 | Expression redirector.setInputEncoding(inputEncoding) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression redirector.setInputString(inputString) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression redirector.setInputEncoding(inputEncoding) is a void method call, and thus it cannot be parameterized |
4 | Expression redirector.setInputString(inputString) is a void method call, and thus it cannot be parameterized |
5 | Expression redirector.setOutputEncoding(outputEncoding) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression redirector.setErrorProperty(errorProperty) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression redirector.setOutputEncoding(outputEncoding) is a void method call, and thus it cannot be parameterized |
8 | Expression redirector.setErrorProperty(errorProperty) is a void method call, and thus it cannot be parameterized |