File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java | |||
Method name: void checkOptions(Commandline)
|
Method name: void checkOptions(Commandline)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (getComment() != null) {↵ | 1 | if (getSubSystem() != null) {↵ | |
2 | cmd.createArgument().setValue(FLAG_COMMENT);↵ | 2 | cmd.createArgument().setValue(FLAG_SUBSYSTEM);↵ | |
3 | cmd.createArgument().setValue("\"" + getComment() + "\"");↵ | 3 | cmd.createArgument().setValue("\"" + getSubSystem() + "\"");↵ | |
4 | }↵ | 4 | } // end of if ()↵ | |
5 | if (getPlatform() != null) {↵ | 5 | if (getRelease() != null) {↵ | |
6 | cmd.createArgument().setValue(FLAG_PLATFORM);↵ | 6 | cmd.createArgument().setValue(FLAG_RELEASE);↵ | |
7 | cmd.createArgument().setValue(getPlatform());↵ | 7 | cmd.createArgument().setValue(getRelease());↵ | |
8 | } | 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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
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) | 9.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (getComment() != null) |
| 10 | if (getSubSystem() != null) | ||||||||||
2 | cmd.createArgument().setValue(FLAG_COMMENT); |
| 11 | cmd.createArgument().setValue(FLAG_SUBSYSTEM); | ||||||||||
3 | cmd.createArgument().setValue("\"" + getComment() + "\""); |
| 12 | cmd.createArgument().setValue("\"" + getSubSystem() + "\""); | ||||||||||
4 | if (getPlatform() != null) |
| 13 | if (getRelease() != null) | ||||||||||
5 | cmd.createArgument().setValue(FLAG_PLATFORM); |
| 14 | cmd.createArgument().setValue(FLAG_RELEASE); | ||||||||||
6 | cmd.createArgument().setValue(getPlatform()); |
| 15 | cmd.createArgument().setValue(getRelease()); |
Row | Violation |
---|