File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/DefaultRmicAdapter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/DefaultRmicAdapter.java | |||
Method name: Commandline setupRmicCommand(String[])
|
Method name: Commandline setupRmicCommand(String[])
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | cmd.createArgument().setValue("-idl");↵ | |||
1 | attributes.log("IIOP has been turned on.", Project.MSG_INFO);↵ | 2 | attributes.log("IDL has been turned on.", Project.MSG_INFO);↵ | |
3 | if (attributes.getIdlopts() != null) {↵ | |||
2 | cmd.createArgument().setValue("-iiop");↵ | 4 | cmd.createArgument().setValue↵ | |
3 | if (attributes.getIiopopts() != null) {↵ | 5 | (attributes.getIdlopts());↵ | |
4 | attributes.log("IIOP Options: " + attributes.getIiopopts(),↵ | 6 | attributes.log("IDL Options: " + attributes.getIdlopts(),↵ | |
5 | Project.MSG_INFO);↵ | 7 | Project.MSG_INFO);↵ | |
6 | cmd.createArgument().setValue(attributes.getIiopopts());↵ | |||
7 | } | 8 |
| |
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 the same method |
Number of node comparisons | 14 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 | attributes.log("IIOP has been turned on.", Project.MSG_INFO); |
| 37 | attributes.log("IDL has been turned on.", Project.MSG_INFO); | |||||||||||||
31 | cmd.createArgument().setValue("-iiop"); |
| 36 | cmd.createArgument().setValue("-idl"); | |||||||||||||
32 | if (attributes.getIiopopts() != null) |
| 38 | if (attributes.getIdlopts() != null) | |||||||||||||
33 | attributes.log("IIOP Options: " + attributes.getIiopopts(), Project.MSG_INFO); |
| 40 | attributes.log("IDL Options: " + attributes.getIdlopts(), Project.MSG_INFO); | |||||||||||||
34 | cmd.createArgument().setValue(attributes.getIiopopts()); |
| 39 | cmd.createArgument().setValue(attributes.getIdlopts()); |
Row | Violation |
---|