public NotificationChain dynamicInverseAdd
(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications)
{
if (owner.eInternalContainer() != null)
{
notifications = owner.eBasicRemoveFromContainer(notifications);
}
int featureID = owner.eClass().getFeatureID(feature);
return owner.eBasicSetContainer(otherEnd, featureID, notifications);
public NotificationChain dynamicInverseRemove
(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications)
{
if (owner.eInternalContainer() != null)
{
notifications = owner.eBasicRemoveFromContainer(notifications);
}
int featureID = owner.eClass().getFeatureID(feature);
return owner.eBasicSetContainer(null, featureID, notifications);
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public NotificationChain dynamicInverseAdd↵ | | 1 | public NotificationChain dynamicInverseRemove↵
|
2 | (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications)↵ | | 2 | (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications)↵
|
3 | {↵ | | 3 | {↵
|
4 | if (owner.eInternalContainer() != null)↵ | | 4 | if (owner.eInternalContainer() != null)↵
|
5 | {↵ | | 5 | {↵
|
6 | notifications = owner.eBasicRemoveFromContainer(notifications);↵ | | 6 | notifications = owner.eBasicRemoveFromContainer(notifications);↵
|
7 | }↵ | | 7 | }↵
|
8 | int featureID = owner.eClass().getFeatureID(feature);↵ | | 8 | int featureID = owner.eClass().getFeatureID(feature);↵
|
9 | return owner.eBasicSetContainer(otherEnd, featureID, notifications);↵ | | 9 | return owner.eBasicSetContainer(null, featureID, notifications);↵
|
10 | | | 10 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |