X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Fquery%2FCacheEntryBase.java;h=7fc0432f832f2f2d3fceaca007c2d1866c12a8b8;hp=7c87b50e3acfa0e4630f3eb93ba8859c1eb13c90;hb=277b1c7fb3fdd8effb4bf2b447358d0e4ef0e302;hpb=4aba159170fc72d39c2f930ea224aa71f4cdc2e7 diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java index 7c87b50e3..7fc0432f8 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java @@ -34,8 +34,8 @@ public abstract class CacheEntryBase extends CacheEntry { final public static CacheEntryBase[] NONE = new CacheEntryBase[0]; - static Object NO_RESULT = new Object(); - static protected Object INVALID_RESULT = new Object(); + static Object NO_RESULT = new Object() { public String toString() { return "NO_RESULT"; }}; + static protected Object INVALID_RESULT = new Object() { public String toString() { return "INVALID_RESULT"; }}; // // Just created // static protected Object FRESH = new Object() { public String toString() { return "CREATED"; }}; @@ -74,6 +74,7 @@ public abstract class CacheEntryBase extends CacheEntry { } public void setReady() { + assert(result != NO_RESULT); statusOrException = READY; }