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: boolean prepareDropOn()
|
Method name: boolean prepareDropOn()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | reset();↵ | 1 | reset();↵ | |
2 | result = prepareDropLinkOn();↵ | 2 | result = prepareDropCopyOn();↵ | |
3 | if (result)↵ | 3 | if (result)↵ | |
4 | {↵ | 4 | {↵ | |
5 | operation = DROP_LINK;↵ | 5 | operation = DROP_COPY;↵ | |
6 | } | 6 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
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) | 13.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | reset(); | 14 | reset(); | |||||||||||||
20 | result = prepareDropLinkOn(); |
| 15 | result = prepareDropCopyOn(); | ||||||||||||
21 | if (result) | 16 | if (result) | |||||||||||||
22 | operation = DROP_LINK; |
| 17 | operation = DROP_COPY; |
Row | Violation |
---|---|
1 | Expression prepareDropLinkOn() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression prepareDropCopyOn() cannot be parameterized, because it has dependencies to/from statements that will be extracted |