]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/ResourceImpl.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / ResourceImpl.java
index 3406d670031590beb58dfee439326cb2fb738e0c..78dacb98ff4ebad6997dcc1a027de5c0b902347e 100644 (file)
@@ -11,6 +11,7 @@
  *******************************************************************************/
 package org.simantics.db.impl;
 
+import org.simantics.db.DevelopmentKeys;
 import org.simantics.db.Resource;
 import org.simantics.db.impl.support.ResourceSupport;
 import org.simantics.db.service.ClusterUID;
@@ -84,7 +85,7 @@ final public class ResourceImpl implements Resource {
         StringBuilder sb = new StringBuilder(32);
         try {
             long rid = getResourceId();
-            if(DebugPolicy.VERBOSE) {
+            if(DevelopmentKeys.VERBOSE) {
                 sb.append("[id=");
                 sb.append(id);
                 sb.append(" - rid=");
@@ -111,7 +112,7 @@ final public class ResourceImpl implements Resource {
     public String toString(ClusterSupport support) {
         StringBuilder sb = new StringBuilder(32);
         long rid = getResourceId();
-        if (DebugPolicy.VERBOSE) {
+        if (DevelopmentKeys.VERBOSE) {
             sb.append("[id=");
             sb.append(id);
             sb.append(" - rid=");