Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-11-10 04:23:36 -0500
committerEike Stepper2009-11-10 04:23:36 -0500
commit9dd9b12952da3b6bfb1ddaf785c16f73bce8006b (patch)
tree274e229bf84516847dfd4bb6e304c87f0fc58fe5 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction
parentaaae239fd2ec21408337f51d8af8fd8e60286b87 (diff)
downloadcdo-9dd9b12952da3b6bfb1ddaf785c16f73bce8006b.tar.gz
cdo-9dd9b12952da3b6bfb1ddaf785c16f73bce8006b.tar.xz
cdo-9dd9b12952da3b6bfb1ddaf785c16f73bce8006b.zip
Fixing various raw types warnings
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
index 93a23857bf..a8f289c916 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
@@ -56,7 +56,6 @@ import org.eclipse.emf.internal.cdo.util.FSMUtil;
import org.eclipse.emf.internal.cdo.util.IPackageClosure;
import org.eclipse.emf.internal.cdo.view.CDOViewImpl;
-import org.eclipse.net4j.util.ImplementationError;
import org.eclipse.net4j.util.ObjectUtil;
import org.eclipse.net4j.util.WrappedException;
import org.eclipse.net4j.util.collection.FastList;
@@ -1167,13 +1166,13 @@ public class CDOTransactionImpl extends CDOViewImpl implements InternalCDOTransa
/**
* TODO Simon: Should this method go to CDOSavePointImpl?
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "rawtypes", "unchecked" })
private void registerNew(Map map, InternalCDOObject object)
{
Object old = map.put(object.cdoID(), object);
if (old != null)
{
- throw new ImplementationError(MessageFormat.format(Messages.getString("CDOTransactionImpl.10"), object)); //$NON-NLS-1$
+ throw new IllegalStateException(MessageFormat.format(Messages.getString("CDOTransactionImpl.10"), object)); //$NON-NLS-1$
}
if (!dirty)
@@ -1553,7 +1552,7 @@ public class CDOTransactionImpl extends CDOViewImpl implements InternalCDOTransa
}
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
private void preCommit(Map objects)
{
if (!objects.isEmpty())
@@ -1565,7 +1564,7 @@ public class CDOTransactionImpl extends CDOViewImpl implements InternalCDOTransa
}
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
private void postCommit(Map objects, CommitTransactionResult result)
{
if (!objects.isEmpty())

Back to the top