summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-12-22 03:43:25 (EST)
committerEike Stepper2007-12-22 03:43:25 (EST)
commit025b7f61665e0318f78a9149284bcc4e0169cd81 (patch)
tree974f2e48cd9d0b079bea0d7e363ba119552d7f67
parenteb3540c3289de84072aca8522cfab2608bf8e568 (diff)
downloadcdo-025b7f61665e0318f78a9149284bcc4e0169cd81.zip
cdo-025b7f61665e0318f78a9149284bcc4e0169cd81.tar.gz
cdo-025b7f61665e0318f78a9149284bcc4e0169cd81.tar.bz2
Fixed some warnings
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java1
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyImpl.java1
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOObjectImpl.java1
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOStore.java1
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java2
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java5
6 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java
index 08539dd..a0e24bd 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java
@@ -163,6 +163,7 @@ public class CDOResourceImpl extends CDOObjectImpl implements CDOResource
*
* @generated NOT
*/
+ @SuppressWarnings("unchecked")
public EList<EObject> getContents()
{
if (FSMUtil.isTransient(this))
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyImpl.java
index 9aa3653..cb3f6bd 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyImpl.java
@@ -381,6 +381,7 @@ public abstract class CDOLegacyImpl extends CDOWrapperImpl implements Adapter.In
}
}
+ @SuppressWarnings("unchecked")
protected void transferFeatureToInstance(CDOViewImpl view, CDOFeatureImpl feature)
{
Object value = revision.getValue(feature);
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOObjectImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOObjectImpl.java
index 693fa63..a5a5d4f 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOObjectImpl.java
@@ -517,6 +517,7 @@ public class CDOObjectImpl extends EStoreEObjectImpl implements InternalCDOObjec
}
}
+ @SuppressWarnings("unchecked")
private static void finalizeRevisionFeature(CDOViewImpl view, CDORevisionImpl revision, int i, Object setting,
EStructuralFeature eFeature, Object[] eSettings)
{
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOStore.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOStore.java
index 42f5aec..e332ae1 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOStore.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOStore.java
@@ -320,6 +320,7 @@ public final class CDOStore implements EStore
return result;
}
+ @SuppressWarnings("unchecked")
public <T> T[] toArray(InternalEObject eObject, EStructuralFeature eFeature, T[] a)
{
Object[] array = toArray(eObject, eFeature);
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
index 485ad40..6838e04 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
@@ -706,6 +706,7 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
}
}
+ @SuppressWarnings("unchecked")
private void notifyAddMany(Notification msg)
{
EList<Resource> newResources = (EList<Resource>)msg.getNewValue();
@@ -752,6 +753,7 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
}
}
+ @SuppressWarnings("unchecked")
private void notifyRemoveMany(Notification msg)
{
EList<Resource> newResources = (EList<Resource>)msg.getNewValue();
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
index 00f86eb..77fb4ce 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
@@ -33,6 +33,7 @@ public abstract class FiniteStateMachine<STATE extends Enum<?>, EVENT extends En
private ITransition<STATE, EVENT, SUBJECT, ?>[][] transitions;
+ @SuppressWarnings("unchecked")
public FiniteStateMachine(Class<STATE> stateEnum, Class<EVENT> eventEnum,
ITransition<STATE, EVENT, SUBJECT, ?> defaultTransition)
{
@@ -42,6 +43,7 @@ public abstract class FiniteStateMachine<STATE extends Enum<?>, EVENT extends En
initAll(defaultTransition);
}
+ @SuppressWarnings("unchecked")
public FiniteStateMachine(Class<STATE> stateEnum, Class<EVENT> eventEnum)
{
this(stateEnum, eventEnum, FAIL);
@@ -124,6 +126,7 @@ public abstract class FiniteStateMachine<STATE extends Enum<?>, EVENT extends En
}
}
+ @SuppressWarnings("unchecked")
public final <DATA> void process(SUBJECT subject, EVENT event, DATA data)
{
STATE state = getState(subject);
@@ -149,11 +152,13 @@ public abstract class FiniteStateMachine<STATE extends Enum<?>, EVENT extends En
}
}
+ @SuppressWarnings("unchecked")
protected ITransition<STATE, EVENT, SUBJECT, ?> createIgnoreTransition(STATE state, EVENT event)
{
return IGNORE;
}
+ @SuppressWarnings("unchecked")
protected ITransition<STATE, EVENT, SUBJECT, ?> createFailTransition(STATE state, EVENT event)
{
return FAIL;