File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Delete.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Edit.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (change != null) {↵ | 1 | if (change != null) {↵ | |
2 | P4CmdOpts = "-c " + change;↵ | 2 | P4CmdOpts = "-c " + change;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (P4View == null) {↵ | 4 | if (P4View == null) {↵ | |
5 | throw new BuildException("No view specified to delete");↵ | 5 | throw new BuildException("No view specified to edit");↵ | |
6 | }↵ | 6 | }↵ | |
7 | execP4Command("-s delete " + P4CmdOpts + " " + P4View, new SimpleP4OutputHandler(this)); | 7 | execP4Command("-s edit " + P4CmdOpts + " " + P4View, new SimpleP4OutputHandler(this)); | |
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 | 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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (change != null) | 1 | if (change != null) | |||||||||||
2 | P4CmdOpts = "-c " + change; | 2 | P4CmdOpts = "-c " + change; | |||||||||||
3 | if (P4View == null) | 3 | if (P4View == null) | |||||||||||
4 | throw new BuildException("No view specified to delete"); |
| 4 | throw new BuildException("No view specified to edit"); | ||||||||||
5 | execP4Command("-s delete " + P4CmdOpts + " " + P4View, new SimpleP4OutputHandler(this)); |
| 5 | execP4Command("-s edit " + P4CmdOpts + " " + P4View, new SimpleP4OutputHandler(this)); |
Row | Violation |
---|