File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java | |||
Method name: Commandline buildCmdLine()
|
Method name: Commandline buildCmdLine()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | String msg = "label attribute must be set!";↵ | 1 | String msg = "vsspath attribute must be set!";↵ | |
2 | throw new BuildException(msg, getLocation());↵ | 2 | throw new BuildException(msg, getLocation());↵ | |
3 | }↵ | 3 | }↵ | |
4 | // build the command line from what we got the format is↵ | 4 | // build the command line from what we got the format is↵ | |
5 | // ss Label VSS items [-C] [-H] [-I-] [-Llabel] [-N] [-O] [-V] [-Y] [-?]↵ | 5 | // ss History elements [-H] [-L] [-N] [-O] [-V] [-Y] [-#] [-?]↵ | |
6 | // as specified in the SS.EXE help↵ | 6 | // as specified in the SS.EXE help↵ | |
7 | commandLine.setExecutable(getSSCommand());↵ | 7 | commandLine.setExecutable(getSSCommand());↵ | |
8 | commandLine.createArgument().setValue(COMMAND_LABEL);↵ | 8 | commandLine.createArgument().setValue(COMMAND_HISTORY);↵ | |
9 | // VSS items↵ | 9 | // VSS items↵ | |
10 | commandLine.createArgument().setValue(getVsspath()); | 10 |
| |
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 different classes having the same super class |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | String msg = "label attribute must be set!"; |
| 3 | String msg = "vsspath attribute must be set!"; | ||||||||||
7 | throw new BuildException(msg, getLocation()); | 4 | throw new BuildException(msg, getLocation()); |
Row | Violation |
---|