super(domain, LABEL, DESCRIPTION_FOR_LIST);
this.value = value;
this.index = index;
@SuppressWarnings("unchecked")
EList<Object> untypedList = (EList<Object>)list;
ownerList = untypedList;
super(domain, LABEL, DESCRIPTION_FOR_LIST);
this.collection = collection;
this.index = index;
@SuppressWarnings("unchecked")
EList<Object> untypedList = (EList<Object>)list;
ownerList = untypedList;
Clone fragments detected by clone detection tool
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/AddCommand.java
|
Method name: void MoveCommand(EditingDomain, EList>, Object, int)
|
|
Method name: void AddCommand(EditingDomain, EList>, Collection>, int)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | super(domain, LABEL, DESCRIPTION_FOR_LIST);↵ | | 1 | super(domain, LABEL, DESCRIPTION_FOR_LIST);↵
|
|
2 | this.value = value;↵ | | 2 | this.collection = collection;↵
|
3 | this.index = index;↵ | | 3 | this.index = index;↵
|
|
4 | @SuppressWarnings("unchecked")↵ | | 4 | @SuppressWarnings("unchecked")↵
|
5 | EList<Object> untypedList = (EList<Object>)list;↵ | | 5 | EList<Object> untypedList = (EList<Object>)list;↵
|
6 | ownerList = untypedList; | | 6 | ownerList = untypedList;
|
See real code fragment |
|
See real code fragment |
Summary
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 | 16 |
-
{Non-refactorable}
Mapping Summary
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super(domain, LABEL, DESCRIPTION_FOR_LIST); | | 1 | super(domain, LABEL, DESCRIPTION_FOR_LIST); |
| | | 2 | this.collection = collection; |
2 | this.value = value; | | | |
3 | this.index = index; | | 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; |
Precondition Violations (1)
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 |