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: 4 | Number of AST nodes: 4 | |||
1 | if (((InternalEObject)resolved).eInternalContainer() == null)↵ | 1 | if (((InternalEObject)resolved).eInternalContainer() == null)↵ | |
2 | {↵ | 2 | ↵ | |
3 | ↵ | 3 | {↵ | |
4 | notificationChain = inverseAdd(resolved, notificationChain);↵ | 4 | notificationChain = inverseAdd(resolvedElement, notificationChain);↵ | |
5 | }↵ | 5 | ↵ | |
6 | ↵ | 6 | }↵ | |
7 | if (notificationChain != null)↵ | 7 | if (notificationChain != null)↵ | |
8 | {↵ | 8 | {↵ | |
9 | notificationChain.dispatch();↵ | 9 | notificationChain.dispatch();↵ | |
10 | } | 10 |
| |
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.4 |
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 | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | if (((InternalEObject)resolved).eInternalContainer() == null) |
| 11 | if (((InternalEObject)resolved).eInternalContainer() == null) | |||||||||||
10 | notificationChain = inverseAdd(resolved, notificationChain); |
| 12 | notificationChain = inverseAdd(resolvedElement, notificationChain); | |||||||||||
11 | if (notificationChain != null) | 13 | if (notificationChain != null) | ||||||||||||
12 | notificationChain.dispatch(); | 14 | notificationChain.dispatch(); |
Row | Violation |
---|---|
1 | Type E of variable resolved does not match with type org.eclipse.emf.ecore.EObject of variable resolved |