Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2014-03-05 17:43:35 +0000
committerEike Stepper2014-03-05 17:45:45 +0000
commit12b160ffc8e7597c29740d9c4fd3ba549b0308ef (patch)
tree33a954c836cc50c791a6e4cf935dcb160569e61d /plugins/org.eclipse.emf.cdo.ecore.retrofit
parenteb28a5a11d96db22b435e6635b33d0b45319d815 (diff)
downloadcdo-12b160ffc8e7597c29740d9c4fd3ba549b0308ef.tar.gz
cdo-12b160ffc8e7597c29740d9c4fd3ba549b0308ef.tar.xz
cdo-12b160ffc8e7597c29740d9c4fd3ba549b0308ef.zip
Fix formatting
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ecore.retrofit')
-rw-r--r--plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java23
1 files changed, 11 insertions, 12 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java b/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
index 74ea0f95ba..4b8382b244 100644
--- a/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
@@ -24,6 +24,7 @@ import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
+
/**
* A minimal abstract implementation of '<em><b>EObject</b></em>' that delegates to a {@link org.eclipse.emf.ecore.InternalEObject.EStore store}.
* It's extends {@link MinimalEObjectImpl} and does <b>not</b> introduce any additional fields.
@@ -37,13 +38,13 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
{
public void added(Notifier notifier, Adapter adapter)
{
- MinimalEStoreEObjectImpl object = (MinimalEStoreEObjectImpl)notifier;
+ MinimalEStoreEObjectImpl object = (MinimalEStoreEObjectImpl) notifier;
object.eAdapterAdded(adapter);
}
public void removed(Notifier notifier, Adapter adapter)
{
- MinimalEStoreEObjectImpl object = (MinimalEStoreEObjectImpl)notifier;
+ MinimalEStoreEObjectImpl object = (MinimalEStoreEObjectImpl) notifier;
object.eAdapterRemoved(adapter);
}
};
@@ -153,8 +154,8 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
@Override
protected boolean eDynamicIsSet(int dynamicFeatureID, EStructuralFeature eFeature)
{
- return dynamicFeatureID < 0 ? eOpenIsSet(eFeature) : eFeature.isTransient() ? eSettingDelegate(eFeature)
- .dynamicIsSet(this, eSettings(), dynamicFeatureID) : eStore().isSet(this, eFeature);
+ return dynamicFeatureID < 0 ? eOpenIsSet(eFeature) : eFeature.isTransient() ? eSettingDelegate(eFeature).dynamicIsSet(this, eSettings(), dynamicFeatureID)
+ : eStore().isSet(this, eFeature);
}
@SuppressWarnings("nls")
@@ -169,9 +170,8 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
public EStoreEcoreEMap()
{
- super((EClass)eType, BasicEMap.Entry.class, null);
- delegateEList = new EStoreEObjectImpl.BasicEStoreEList<BasicEMap.Entry<Object, Object>>(
- MinimalEStoreEObjectImpl.this, eStructuralFeature)
+ super((EClass) eType, BasicEMap.Entry.class, null);
+ delegateEList = new EStoreEObjectImpl.BasicEStoreEList<BasicEMap.Entry<Object, Object>>(MinimalEStoreEObjectImpl.this, eStructuralFeature)
{
private static final long serialVersionUID = 1L;
@@ -182,8 +182,7 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
}
@Override
- protected void didSet(int index, BasicEMap.Entry<Object, Object> newObject,
- BasicEMap.Entry<Object, Object> oldObject)
+ protected void didSet(int index, BasicEMap.Entry<Object, Object> newObject, BasicEMap.Entry<Object, Object> oldObject)
{
didRemove(index, oldObject);
didAdd(index, newObject);
@@ -257,7 +256,7 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
EStructuralFeature eContainingFeature = eStore().getContainingFeature(this);
if (eContainingFeature instanceof EReference)
{
- EReference eContainingReference = (EReference)eContainingFeature;
+ EReference eContainingReference = (EReference) eContainingFeature;
EReference eOpposite = eContainingReference.getEOpposite();
if (eOpposite != null)
{
@@ -292,14 +291,14 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
adapters = null;// Optimize possibly empty array
if (oldAdapters != null) // Can't be empty array because of the optimization above
{
- ((EObservableAdapterList)eAdapters()).removeListener(ADAPTERS_LISTENER);
+ ((EObservableAdapterList) eAdapters()).removeListener(ADAPTERS_LISTENER);
}
}
else
{
if (oldAdapters == null) // Can't be empty array because of the optimization above
{
- ((EObservableAdapterList)eAdapters()).addListener(ADAPTERS_LISTENER);
+ ((EObservableAdapterList) eAdapters()).addListener(ADAPTERS_LISTENER);
}
}
super.eBasicSetAdapterArray(adapters);

Back to the top