File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java | |||
Method name: Commandline buildCmdLine()
|
Method name: Commandline buildCmdLine()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | commandLine.createArgument().setValue(getVerbose());↵ | 1 | commandLine.createArgument().setValue(getRecursive());↵ | |
2 | // Look for a comment↵ | 2 | // look for a label option↵ | |
3 | if (getComment() != null) {↵ | 3 | if (getLabel() != null) {↵ | |
4 | commandLine.createArgument().setValue(SOSCmd.FLAG_COMMENT);↵ | 4 | commandLine.createArgument().setValue(SOSCmd.FLAG_LABEL);↵ | |
5 | commandLine.createArgument().setValue(getComment());↵ | 5 | commandLine.createArgument().setValue(getLabel());↵ | |
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 | 4 |
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) | 17.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | commandLine.createArgument().setValue(getVerbose()); |
| 12 | commandLine.createArgument().setValue(getRecursive()); | ||||||||||
10 | if (getComment() != null) |
| 13 | if (getLabel() != null) | ||||||||||
11 | commandLine.createArgument().setValue(SOSCmd.FLAG_COMMENT); |
| 14 | commandLine.createArgument().setValue(SOSCmd.FLAG_LABEL); | ||||||||||
12 | commandLine.createArgument().setValue(getComment()); |
| 15 | commandLine.createArgument().setValue(getLabel()); |
Row | Violation |
---|