]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/IntSet.java
Still working for multiple readers
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / query / IntSet.java
index fdea8d2132e49c78ace27d26015ff8b5800084cd..813677d53265d36079395fd471f160e69237680b 100644 (file)
@@ -43,12 +43,12 @@ final public class IntSet implements ResourceSet {
     
     private static final Object[] EMPTY_ARRAY = new Object[0];
 
-    public IntSet() {
-        support = null;
-        data = null;
-        sizeOrData = NO_DATA;
+    public static IntSet EMPTY = new IntSet();
+    
+    private IntSet() {
+       support = null;
     }
-
+    
     public IntSet(QuerySupport support) {
         this.support = support.getSupport();
         data = null;