File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/DragAndDropCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/DragAndDropCommand.java | |||
Method name: void redo()
|
Method name: void undo()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (dragCommand != null)↵ | 1 | if (dropCommand != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | dragCommand.redo();↵ | 3 | dropCommand.undo();↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (dropCommand != null)↵ | 5 | if (dragCommand != null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | dropCommand.redo();↵ | 7 | dragCommand.undo();↵ | |
8 | } | 8 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
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) | 2969.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (dragCommand != null) | 3 | if (dragCommand != null) | |||||||||||||||
2 | dragCommand.redo(); |
| 4 | dragCommand.undo(); | ||||||||||||||
3 | if (dropCommand != null) | 1 | if (dropCommand != null) | |||||||||||||||
4 | dropCommand.redo(); |
| 2 | dropCommand.undo(); |
Row | Violation |
---|---|
1 | Expression dragCommand.redo() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression dragCommand.undo() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression dragCommand.redo() is a void method call, and thus it cannot be parameterized |
4 | Expression dragCommand.undo() is a void method call, and thus it cannot be parameterized |
5 | Expression dropCommand.redo() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression dropCommand.undo() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression dropCommand.redo() is a void method call, and thus it cannot be parameterized |
8 | Expression dropCommand.undo() is a void method call, and thus it cannot be parameterized |