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: 6 | Number of AST nodes: 6 | |||
1 | if (alwaysLog != null) {↵ | |||
2 | redirector.setAlwaysLog(alwaysLog.booleanValue());↵ | |||
3 | }↵ | |||
1 | if (logError != null) {↵ | 4 | if (logError != null) {↵ | |
2 | redirector.setLogError(logError.booleanValue());↵ | 5 | redirector.setLogError(logError.booleanValue());↵ | |
3 | }↵ | 6 | }↵ | |
4 | if (append != null) {↵ | 7 | if (append != null) {↵ | |
5 | redirector.setAppend(append.booleanValue());↵ | 8 | redirector.setAppend(append.booleanValue());↵ | |
6 | }↵ | 9 |
| |
7 | if (createEmptyFiles != null) {↵ | |||
8 | redirector.setCreateEmptyFiles(createEmptyFiles.booleanValue());↵ | |||
9 | } | |||
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 27 |
Number of mapped statements | 6 |
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.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | if (logError != null) | 6 | if (logError != null) | ||||||||||||||||
7 | redirector.setLogError(logError.booleanValue()); | 7 | redirector.setLogError(logError.booleanValue()); | ||||||||||||||||
8 | if (append != null) | 8 | if (append != null) | ||||||||||||||||
9 | redirector.setAppend(append.booleanValue()); | 9 | redirector.setAppend(append.booleanValue()); | ||||||||||||||||
10 | if (createEmptyFiles != null) |
| 4 | if (alwaysLog != null) | |||||||||||||||
11 | redirector.setCreateEmptyFiles(createEmptyFiles.booleanValue()); |
| 5 | redirector.setAlwaysLog(alwaysLog.booleanValue()); |
Row | Violation |
---|---|
1 | Expression redirector.setCreateEmptyFiles(createEmptyFiles.booleanValue()) is a void method call, and thus it cannot be parameterized |
2 | Expression redirector.setAlwaysLog(alwaysLog.booleanValue()) is a void method call, and thus it cannot be parameterized |