File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java | |||
Method name: void run()
|
Method name: void run()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | System.setOut(↵ | 1 | System.setErr(↵ | |
2 | new PrintStream(↵ | 2 | new PrintStream(↵ | |
3 | new OutputStream() {↵ | 3 | new OutputStream() {↵ | |
4 | public void write(int b) {↵ | 4 | public void write(int b) {↵ | |
5 | }↵ | 5 | }↵ | |
6 | })); | 6 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | System.setOut(new PrintStream(new OutputStream() {...})); |
| 16 | System.setErr(new PrintStream(new OutputStream() {...})); |
Row | Violation |
---|---|
1 | Expression System.setOut(new PrintStream(new OutputStream(){ public void write( int b){ } } )) is a void method call, and thus it cannot be parameterized |
2 | Expression System.setErr(new PrintStream(new OutputStream(){ public void write( int b){ } } )) is a void method call, and thus it cannot be parameterized |