P4CmdOpts = P4CmdOpts + " -am";
} else if (this.resolvemode.equals(FORCE)) {
P4CmdOpts = P4CmdOpts + " -af";
} else if (this.resolvemode.equals(SAFE)) {
P4CmdOpts = P4CmdOpts + " -as";
P4CmdOpts = P4CmdOpts + " -as";
} else if (this.resolvemode.equals(THEIRS)) {
P4CmdOpts = P4CmdOpts + " -at";
} else if (this.resolvemode.equals(YOURS)) {
P4CmdOpts = P4CmdOpts + " -ay";
Clone fragments detected by clone detection tool
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: 3
|
|
Number of AST nodes: 3
|
|
1 | P4CmdOpts = P4CmdOpts + " -am";↵ | | 1 | P4CmdOpts = P4CmdOpts + " -as";↵
|
2 | } else if (this.resolvemode.equals(FORCE)) {↵ | | 2 | } else if (this.resolvemode.equals(THEIRS)) {↵
|
3 | P4CmdOpts = P4CmdOpts + " -af";↵ | | 3 | P4CmdOpts = P4CmdOpts + " -at";↵
|
4 | } else if (this.resolvemode.equals(SAFE)) {↵ | | 4 | } else if (this.resolvemode.equals(YOURS)) {↵
|
5 | P4CmdOpts = P4CmdOpts + " -as"; | | 5 | P4CmdOpts = P4CmdOpts + " -ay";
|
See real code fragment |
|
See real code fragment |
Summary
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 |
-
{Refactorable}
Mapping Summary
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | P4CmdOpts = P4CmdOpts + " -am"; | | 6 | P4CmdOpts = P4CmdOpts + " -as"; |
Precondition Violations (0)
Row |
Violation |