Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java
index 3a97106b5c..d73e024b08 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/legacy/impl/ProductToOrderImpl.java
@@ -90,9 +90,7 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
if (key != oldKey)
{
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PRODUCT_TO_ORDER__KEY, oldKey, key));
- }
}
}
return key;
@@ -116,9 +114,7 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
Product1 oldKey = key;
key = newKey;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PRODUCT_TO_ORDER__KEY, oldKey, key));
- }
}
/**
@@ -134,9 +130,7 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
if (value != oldValue)
{
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PRODUCT_TO_ORDER__VALUE, oldValue, value));
- }
}
}
return value;
@@ -160,9 +154,7 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
SalesOrder oldValue = value;
value = newValue;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PRODUCT_TO_ORDER__VALUE, oldValue, value));
- }
}
/**
@@ -176,15 +168,11 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
{
case Model1Package.PRODUCT_TO_ORDER__KEY:
if (resolve)
- {
return getTypedKey();
- }
return basicGetTypedKey();
case Model1Package.PRODUCT_TO_ORDER__VALUE:
if (resolve)
- {
return getTypedValue();
- }
return basicGetTypedValue();
}
return super.eGet(featureID, resolve, coreType);
@@ -261,7 +249,7 @@ public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<P
if (hash == -1)
{
Object theKey = getKey();
- hash = theKey == null ? 0 : theKey.hashCode();
+ hash = (theKey == null ? 0 : theKey.hashCode());
}
return hash;
}

Back to the top