File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/MoveCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/ReplaceCommand.java | |||
Method name: void MoveCommand(EditingDomain, EList>, Object, int)
|
Method name: void ReplaceCommand(EditingDomain, EList>, Object, Collection>)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | super(domain, LABEL, DESCRIPTION_FOR_LIST);↵ | 1 | super(domain, LABEL, DESCRIPTION↵ | |
2 | );↵ | |||
3 | // Initialize all the fields from the command parameter.↵ | |||
4 | //↵ | |||
2 | this.value = value;↵ | 5 | this.value = value;↵ | |
3 | this.index = index;↵ | 6 | this.collection = collection;↵ | |
4 | @SuppressWarnings("unchecked")↵ | 7 | @SuppressWarnings("unchecked")↵ | |
5 | EList<Object> untypedList = (EList<Object>)list;↵ | 8 | EList<Object> untypedList = (EList<Object>)list;↵ | |
6 | ownerList = untypedList; | 9 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(domain, LABEL, DESCRIPTION_FOR_LIST); |
| 1 | super(domain, LABEL, DESCRIPTION); | |||||||||||
2 | this.value = value; | 2 | this.value = value; | ||||||||||||
| 3 | this.collection = collection; | |||||||||||||
3 | this.index = index; | | |||||||||||||
4 | @SuppressWarnings("unchecked") EList<Object> untypedList = (EList<Object>)list; |
| 4 | @SuppressWarnings("unchecked") EList<Object> untypedList = (EList<Object>)list; | |||||||||||
5 | ownerList = untypedList; | 5 | ownerList = untypedList; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.common.util.EList<> of variable list does not match with type org.eclipse.emf.common.util.EList<> of variable list |