File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Resolve.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/P4Resolve.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | P4CmdOpts = P4CmdOpts + " -am";↵ | |||
2 | } else if (this.resolvemode.equals(FORCE)) {↵ | |||
1 | P4CmdOpts = P4CmdOpts + " -af";↵ | 3 | P4CmdOpts = P4CmdOpts + " -af";↵ | |
2 | } else if (this.resolvemode.equals(SAFE)) {↵ | 4 | } else if (this.resolvemode.equals(SAFE)) {↵ | |
3 | P4CmdOpts = P4CmdOpts + " -as";↵ | 5 | P4CmdOpts = P4CmdOpts + " -as";↵ | |
4 | } else if (this.resolvemode.equals(THEIRS)) {↵ | 6 | } else if (this.resolvemode.equals(THEIRS)) {↵ | |
5 | P4CmdOpts = P4CmdOpts + " -at";↵ | 7 |
| |
6 | } else if (this.resolvemode.equals(YOURS)) {↵ | |||
7 | P4CmdOpts = P4CmdOpts + " -ay"; | |||
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | P4CmdOpts = P4CmdOpts + " -af"; |
| 2 | P4CmdOpts = P4CmdOpts + " -am"; |
Row | Violation |
---|