File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassifierImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EParameterImpl.java | |||
Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain)
|
Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case EcorePackage.ECLASSIFIER__EANNOTATIONS:↵ | 3 | case EcorePackage.EPARAMETER__EANNOTATIONS:↵ | |
4 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs);↵ | 4 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs);↵ | |
5 | case EcorePackage.ECLASSIFIER__EPACKAGE:↵ | 5 | case EcorePackage.EPARAMETER__EOPERATION:↵ | |
6 | if (eInternalContainer() != null)↵ | 6 | if (eInternalContainer() != null)↵ | |
7 | msgs = eBasicRemoveFromContainer(msgs);↵ | 7 | msgs = eBasicRemoveFromContainer(msgs);↵ | |
8 | return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs);↵ | 8 | return eBasicSetContainer(otherEnd, EcorePackage.EPARAMETER__EOPERATION, msgs);↵ | |
9 | }↵ | 9 | }↵ | |
10 | return eDynamicInverseAdd(otherEnd, featureID, msgs); | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 18 |
Number of mapped statements | 8 |
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) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||
2 | case EcorePackage.ECLASSIFIER__EANNOTATIONS: |
| 2 | case EcorePackage.EPARAMETER__EANNOTATIONS: | ||||||||||
3 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs); | 3 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getEAnnotations()).basicAdd(otherEnd, msgs); | |||||||||||
4 | case EcorePackage.ECLASSIFIER__EPACKAGE: |
| 4 | case EcorePackage.EPARAMETER__EOPERATION: | ||||||||||
5 | if (eInternalContainer() != null) | 5 | if (eInternalContainer() != null) | |||||||||||
6 | msgs = eBasicRemoveFromContainer(msgs); | 6 | msgs = eBasicRemoveFromContainer(msgs); | |||||||||||
7 | return eBasicSetContainer(otherEnd, EcorePackage.ECLASSIFIER__EPACKAGE, msgs); |
| 7 | return eBasicSetContainer(otherEnd, EcorePackage.EPARAMETER__EOPERATION, msgs); | ||||||||||
8 | return eDynamicInverseAdd(otherEnd, featureID, msgs); | 8 | return eDynamicInverseAdd(otherEnd, featureID, msgs); |
Row | Violation |
---|