File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java | |||
Method name: int executeAsForked(CommandlineJava, ExecuteWatchdog)
|
Method name: TestResultHolder executeAsForked(JUnitTest, ExecuteWatchdog, File)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | Execute execute = new Execute(new LogStreamHandler(↵ | 1 | Execute execute = new Execute(↵ | |
2 | new JUnitLogStreamHandler(↵ | |||
2 | this,↵ | 3 | this,↵ | |
3 | Project.MSG_INFO,↵ | 4 | Project.MSG_INFO,↵ | |
4 | Project.MSG_WARN),↵ | 5 | Project.MSG_WARN),↵ | |
5 | watchdog);↵ | 6 | watchdog);↵ | |
6 | execute.setCommandline(commandline.getCommandline()); | 7 | execute.setCommandline(cmd.getCommandline()); | |
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 different classes having the same super class |
Number of node comparisons | 4 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | Execute execute = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN), watchdog); |
| 57 | Execute execute = new Execute(new JUnitLogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN), watchdog); | ||||||||||
34 | execute.setCommandline(commandline.getCommandline()); |
| 58 | execute.setCommandline(cmd.getCommandline()); |
Row | Violation |
---|