File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingEcoreEList.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreEList.java | |||
Method name: E resolve(int, E)
|
Method name: EObject resolve(int, EObject)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (isNotificationRequired())↵ | 1 | if (isNotificationRequired())↵ | |
2 | {↵ | 2 | ↵ | |
3 | ↵ | 3 | {↵ | |
4 | dispatchNotification(createNotification(Notification.RESOLVE, object, resolved, index, false));↵ | 4 | dispatchNotification(createNotification(Notification.RESOLVE, eObject, resolved, index, false));↵ | |
5 | }↵ | 5 | }↵ | |
6 | return resolved; | 6 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | if (isNotificationRequired()) | 15 | if (isNotificationRequired()) | |||||||||||||||
14 | dispatchNotification(createNotification(Notification.RESOLVE, object, resolved, index, false)); |
| 16 | dispatchNotification(createNotification(Notification.RESOLVE, eObject, resolved, index, false)); | ||||||||||||||
15 | return resolved; |
| | |||||||||||||||
|
| 17 | return resolved; |
Row | Violation |
---|---|
1 | Type E of variable object does not match with type org.eclipse.emf.ecore.EObject of variable eObject |
2 | Unmatched return resolved; |
3 | Unmatched return resolved; |