File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/Ejbc.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/DDCreator.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | Commandline.Argument arguments = helperTask.createArg();↵ | 1 | Commandline.Argument arguments = ddCreatorTask.createArg();↵ | |
2 | arguments.setLine(args);↵ | 2 | arguments.setLine(args);↵ | |
3 | helperTask.setClasspath(new Path(getProject(), execClassPath));↵ | 3 | ddCreatorTask.setClasspath(new Path(getProject(), execClassPath));↵ | |
4 | if (helperTask.executeJava() != 0) {↵ | 4 | if (ddCreatorTask.executeJava() != 0) {↵ | |
5 | throw new BuildException("Execution of ejbc helper failed");↵ | 5 | throw new BuildException("Execution of ddcreator helper failed");↵ | |
6 | } | 6 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 5 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22 | Commandline.Argument arguments = helperTask.createArg(); |
| 15 | Commandline.Argument arguments = ddCreatorTask.createArg(); | ||||||||||
23 | arguments.setLine(args); | 16 | arguments.setLine(args); | |||||||||||
24 | helperTask.setClasspath(new Path(getProject(), execClassPath)); |
| 17 | ddCreatorTask.setClasspath(new Path(getProject(), execClassPath)); | ||||||||||
25 | if (helperTask.executeJava() != 0) |
| 18 | if (ddCreatorTask.executeJava() != 0) | ||||||||||
26 | throw new BuildException("Execution of ejbc helper failed"); |
| 19 | throw new BuildException("Execution of ddcreator helper failed"); |
Row | Violation |
---|