File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (getViewPath() == null) {↵ | 1 | if (getViewPath() == null) {↵ | |
2 | setViewPath(aProj.getBaseDir().getPath());↵ | 2 | setViewPath(aProj.getBaseDir().getPath());↵ | |
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 | // cleartool mkattr [options...] [viewpath ...]↵ | 5 | // cleartool mklabel [options...] [viewpath ...]↵ | |
6 | // as specified in the CLEARTOOL help↵ | 6 | // as specified in the CLEARTOOL help↵ | |
7 | commandLine.setExecutable(getClearToolCommand());↵ | 7 | commandLine.setExecutable(getClearToolCommand());↵ | |
8 | commandLine.createArgument().setValue(COMMAND_MKATTR);↵ | 8 | commandLine.createArgument().setValue(COMMAND_MKLABEL);↵ | |
9 | checkOptions(commandLine); | 9 |
| |
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 | 13 |
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) | 19.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (getViewPath() == null) | 6 | if (getViewPath() == null) | |||||||||||
9 | setViewPath(aProj.getBaseDir().getPath()); | 7 | setViewPath(aProj.getBaseDir().getPath()); | |||||||||||
10 | commandLine.setExecutable(getClearToolCommand()); | 8 | commandLine.setExecutable(getClearToolCommand()); | |||||||||||
11 | commandLine.createArgument().setValue(COMMAND_MKATTR); |
| 9 | commandLine.createArgument().setValue(COMMAND_MKLABEL); | ||||||||||
12 | checkOptions(commandLine); | 10 | checkOptions(commandLine); |
Row | Violation |
---|