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/EAnnotationImpl.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.EANNOTATION__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.EANNOTATION__EMODEL_ELEMENT:↵ | |
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 basicSetEModelElement((EModelElement)otherEnd, 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 | 0 |
Number of non-refactorable cases | 1 |
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) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | ||||||||||||||||||
2 | case EcorePackage.ECLASSIFIER__EANNOTATIONS: |
| 2 | case EcorePackage.EANNOTATION__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.EANNOTATION__EMODEL_ELEMENT: | |||||||||||||||||
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 basicSetEModelElement((EModelElement)otherEnd, msgs); | |||||||||||||||||
8 | return eDynamicInverseAdd(otherEnd, featureID, msgs); | 8 | return eDynamicInverseAdd(otherEnd, featureID, msgs); |
Row | Violation |
---|---|
1 | Expression eBasicSetContainer(otherEnd,EcorePackage.ECLASSIFIER__EPACKAGE,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression basicSetEModelElement((EModelElement)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression eBasicSetContainer(otherEnd,EcorePackage.ECLASSIFIER__EPACKAGE,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression basicSetEModelElement((EModelElement)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |