File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java | |||
Method name: NotificationChain dynamicInverseAdd(InternalEObject, EStructuralFeature.Internal.DynamicValueHolder, int, InternalEObject, NotificationChain)
|
Method name: NotificationChain dynamicInverseRemove(InternalEObject, EStructuralFeature.Internal.DynamicValueHolder, int, InternalEObject, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (owner.eInternalContainer() != null)↵ | 1 | if (owner.eInternalContainer() != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | notifications = owner.eBasicRemoveFromContainer(notifications);↵ | 3 | notifications = owner.eBasicRemoveFromContainer(notifications);↵ | |
4 | }↵ | 4 | }↵ | |
5 | int featureID = owner.eClass().getFeatureID(feature);↵ | 5 | int featureID = owner.eClass().getFeatureID(feature);↵ | |
6 | return owner.eBasicSetContainer(otherEnd, featureID, notifications); | 6 | return owner.eBasicSetContainer(null, featureID, notifications); | |
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 declared in the same class |
Number of node comparisons | 8 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (owner.eInternalContainer() != null) | 1 | if (owner.eInternalContainer() != null) | |||||||||||
2 | notifications = owner.eBasicRemoveFromContainer(notifications); | 2 | notifications = owner.eBasicRemoveFromContainer(notifications); | |||||||||||
3 | int featureID = owner.eClass().getFeatureID(feature); | 3 | int featureID = owner.eClass().getFeatureID(feature); | |||||||||||
4 | return owner.eBasicSetContainer(otherEnd, featureID, notifications); |
| 4 | return owner.eBasicSetContainer(null, featureID, notifications); |
Row | Violation |
---|