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/DragAndDropCommand.java | |||
Method name: void doExecute()
|
Method name: void execute()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (removeCommand.canExecute())↵ | 1 | if (dropCommand.canExecute())↵ | |
2 | ↵ | 2 | ↵ | |
3 | {↵ | 3 | {↵ | |
4 | removeCommand.execute();↵ | 4 | dropCommand.execute();↵ | |
5 | }↵ | 5 | ↵ | |
6 | ↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | ↵ | 8 | ↵ | |
9 | {↵ | 9 | {↵ | |
10 | removeCommand = null;↵ | 10 | ↵ | |
11 | ↵ | 11 | // Thread.dumpStack();↵ | |
12 | } | 12 |
| |
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 | 7 |
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()) |
| 8 | if (dropCommand.canExecute()) | ||||||||||
36 | removeCommand.execute(); |
| 9 | dropCommand.execute(); | ||||||||||
else | | |||||||||||||
37 | removeCommand = null; | |
Row | Violation |
---|