File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/MoveCommand.java | |||
Method name: void AddCommand(EditingDomain, EObject, EStructuralFeature, Collection>, int)
|
Method name: void MoveCommand(EditingDomain, EObject, EStructuralFeature, Object, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | super(domain, LABEL, DESCRIPTION);↵ | 1 | super (domain, LABEL, DESCRIPTION);↵ | |
2 | this.owner = owner;↵ | 2 | this.owner = owner;↵ | |
3 | this.feature = feature;↵ | 3 | this.feature = feature;↵ | |
4 | this.collection = collection;↵ | 4 | this.value = value;↵ | |
5 | this.index = index;↵ | 5 | this.index = index;↵ | |
6 | ownerList = getOwnerList(owner, feature); | 6 | ownerList = getOwnerList(this.owner, feature); | |
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 | 18 |
Number of mapped statements | 5 |
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); | 1 | super(domain, LABEL, DESCRIPTION); | ||||||||||||
2 | this.owner = owner; | 2 | this.owner = owner; | ||||||||||||
3 | this.feature = feature; | 3 | this.feature = feature; | ||||||||||||
| 4 | this.value = value; | |||||||||||||
4 | this.collection = collection; | | |||||||||||||
5 | this.index = index; | 5 | this.index = index; | ||||||||||||
6 | ownerList = getOwnerList(owner, feature); |
| 6 | ownerList = getOwnerList(this.owner, feature); |
Row | Violation |
---|---|
1 | Expression this.owner cannot be parameterized, because it has dependencies to/from statements that will be extracted |