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 prepareDropInsert()
|
Method name: boolean prepareDropInsert()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | reset();↵ | 1 | reset();↵ | |
2 | result = prepareDropLinkInsert(parent, children, i);↵ | 2 | result = prepareDropCopyInsert(parent, children, i);↵ | |
3 | if (result)↵ | 3 | if (result)↵ | |
4 | {↵ | 4 | {↵ | |
5 | // We've switch the operation!↵ | 5 | // We've switch the operation!↵ | |
6 | //↵ | 6 | //↵ | |
7 | operation = DROP_LINK;↵ | 7 | operation = DROP_COPY;↵ | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
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) | 22.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | reset(); | 26 | reset(); | |||||||||||||||||
32 | result = prepareDropLinkInsert(parent, children, i); |
| 27 | result = prepareDropCopyInsert(parent, children, i); | ||||||||||||||||
33 | if (result) | 28 | if (result) | |||||||||||||||||
34 | operation = DROP_LINK; |
| 29 | operation = DROP_COPY; |
Row | Violation |
---|---|
1 | Expression prepareDropLinkInsert(parent,children,i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression prepareDropCopyInsert(parent,children,i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type java.util.Collection<> of variable children does not match with type java.util.Collection<> of variable children |