Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-08-24 01:26:42 -0400
committerEike Stepper2011-08-24 01:26:42 -0400
commit18f2a6f5b06b2407120cd7cae8c15a6ce85b70a2 (patch)
treefaf995601978cef69bfb2ccc68215bdcce9e09ac
parent8e776e7fe308d7c61de2a58782902b4b6ecb340f (diff)
downloadcdo-18f2a6f5b06b2407120cd7cae8c15a6ce85b70a2.tar.gz
cdo-18f2a6f5b06b2407120cd7cae8c15a6ce85b70a2.tar.xz
cdo-18f2a6f5b06b2407120cd7cae8c15a6ce85b70a2.zip
fixed isEmpty()
-rw-r--r--plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/AbstractCDOWorkspaceBase.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/AbstractCDOWorkspaceBase.java b/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/AbstractCDOWorkspaceBase.java
index 696ed156ba..c0a15391dc 100644
--- a/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/AbstractCDOWorkspaceBase.java
+++ b/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/AbstractCDOWorkspaceBase.java
@@ -34,6 +34,7 @@ import org.eclipse.net4j.util.io.ExtendedDataOutputStream;
import org.eclipse.emf.spi.cdo.InternalCDOTransaction;
import java.io.IOException;
+import java.util.HashSet;
import java.util.Set;
/**
@@ -117,13 +118,13 @@ public abstract class AbstractCDOWorkspaceBase implements InternalCDOWorkspaceBa
public final synchronized void clear()
{
- ids = null;
+ ids = new HashSet<CDOID>();
doClear();
}
public final synchronized boolean isEmpty()
{
- return ids == null || ids.isEmpty();
+ return getIDs().isEmpty();
}
public final synchronized boolean containsID(CDOID id)

Back to the top