File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/DDCreator.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/Ejbc.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | Commandline.Argument arguments = ddCreatorTask.createArg();↵ | 1 | Commandline.Argument arguments = helperTask.createArg();↵ | |
2 | arguments.setLine(args);↵ | 2 | arguments.setLine(args);↵ | |
3 | ddCreatorTask.setClasspath(new Path(getProject(), execClassPath));↵ | 3 | helperTask.setClasspath(new Path(getProject(), execClassPath));↵ | |
4 | if (ddCreatorTask.executeJava() != 0) {↵ | 4 | if (helperTask.executeJava() != 0) {↵ | |
5 | throw new BuildException("Execution of ddcreator helper failed");↵ | 5 | throw new BuildException("Execution of ejbc 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.2 |
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) | 2.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | Commandline.Argument arguments = ddCreatorTask.createArg(); |
| 22 | Commandline.Argument arguments = helperTask.createArg(); | ||||||||||
16 | arguments.setLine(args); | 23 | arguments.setLine(args); | |||||||||||
17 | ddCreatorTask.setClasspath(new Path(getProject(), execClassPath)); |
| 24 | helperTask.setClasspath(new Path(getProject(), execClassPath)); | ||||||||||
18 | if (ddCreatorTask.executeJava() != 0) |
| 25 | if (helperTask.executeJava() != 0) | ||||||||||
19 | throw new BuildException("Execution of ddcreator helper failed"); |
| 26 | throw new BuildException("Execution of ejbc helper failed"); |
Row | Violation |
---|