File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java | |||
Method name: void execP4Command(String, P4Handler)
|
Method name: void execP4Command(String, P4Handler)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (P4Port != null && P4Port.length() != 0) {↵ | 1 | if (P4User != null && P4User.length() != 0) {↵ | |
2 | commandline.createArgument().setValue(P4Port);↵ | 2 | commandline.createArgument().setValue(P4User);↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (P4User != null && P4User.length() != 0) {↵ | 4 | if (P4Client != null && P4Client.length() != 0) {↵ | |
5 | commandline.createArgument().setValue(P4User);↵ | 5 | commandline.createArgument().setValue(P4Client);↵ | |
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.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | if (P4Port != null && P4Port.length() != 0) |
| 8 | if (P4User != null && P4User.length() != 0) | |||||||||||||
7 | commandline.createArgument().setValue(P4Port); |
| 9 | commandline.createArgument().setValue(P4User); | |||||||||||||
8 | if (P4User != null && P4User.length() != 0) |
| 10 | if (P4Client != null && P4Client.length() != 0) | |||||||||||||
9 | commandline.createArgument().setValue(P4User); |
| 11 | commandline.createArgument().setValue(P4Client); |
Row | Violation |
---|