File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/SetCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/PasteFromClipboardCommand.java | |||
Method name: void doExecute()
|
Method name: void doExecute()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (removeCommand.canExecute())↵ | 1 | if (command.canExecute())↵ | |
2 | {↵ | 2 | {↵ | |
3 | removeCommand.execute();↵ | 3 | command.execute();↵ | |
4 | }↵ | 4 | ↵ | |
5 | ↵ | 5 | } ↵ | |
6 | else↵ | 6 | else↵ | |
7 | {↵ | 7 | {↵ | |
8 | removeCommand = null;↵ | 8 | ↵ | |
9 | ↵ | 9 | // Thread.dumpStack();↵ | |
10 | } | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35 | if (removeCommand.canExecute()) |
| 1 | if (command.canExecute()) | ||||||||||||||
36 | removeCommand.execute(); |
| 2 | command.execute(); | ||||||||||||||
else | | |||||||||||||||||
37 | removeCommand = null; | |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.common.command.Command of variable removeCommand does not match with type org.eclipse.emf.common.command.StrictCompoundCommand of variable command |
2 | Type org.eclipse.emf.common.command.Command of variable removeCommand does not match with type org.eclipse.emf.common.command.StrictCompoundCommand of variable command |