dropCommand.dispose();
dropCommand = UnexecutableCommand.INSTANCE;
dragCommand.undo();
dragCommand.dispose();
isDragCommandExecuted = false;
dragCommand = IdentityCommand.INSTANCE;
dropCommand.dispose();
dropCommand = UnexecutableCommand.INSTANCE;
dragCommand.undo();
dragCommand.dispose();
isDragCommandExecuted = false;
dragCommand = IdentityCommand.INSTANCE;
Clone fragments detected by clone detection tool
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 prepareDropCopyInsert(Object, Collection>, int)
|
|
Method name: boolean prepareDropCopyOn()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | dropCommand.dispose();↵ | | 1 | dropCommand.dispose();↵
|
2 | dropCommand = UnexecutableCommand.INSTANCE;↵ | | 2 | dropCommand = UnexecutableCommand.INSTANCE;↵
|
|
3 | dragCommand.undo();↵ | | 3 | dragCommand.undo();↵
|
4 | dragCommand.dispose();↵ | | 4 | dragCommand.dispose();↵
|
5 | isDragCommandExecuted = false;↵ | | 5 | isDragCommandExecuted = false;↵
|
6 | dragCommand = IdentityCommand.INSTANCE; | | 6 | dragCommand = IdentityCommand.INSTANCE;
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 15 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
16 | dropCommand.dispose(); | | 12 | dropCommand.dispose(); |
17 | dropCommand = UnexecutableCommand.INSTANCE; | | 13 | dropCommand = UnexecutableCommand.INSTANCE; |
18 | dragCommand.undo(); | | 14 | dragCommand.undo(); |
19 | dragCommand.dispose(); | | 15 | dragCommand.dispose(); |
20 | isDragCommandExecuted = false; | | 16 | isDragCommandExecuted = false; |
21 | dragCommand = IdentityCommand.INSTANCE; | | 17 | dragCommand = IdentityCommand.INSTANCE; |
Precondition Violations (0)
Row |
Violation |