]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/uri/EscapedChildMapOfResource.java
Utilize slf4j
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / uri / EscapedChildMapOfResource.java
index 99b20ff73e6c4c055043485e97c8907b253a3aa2..1d92da9c839a1e86f2d80e12100a08555f0d2d15 100644 (file)
@@ -20,12 +20,17 @@ import org.simantics.db.Resource;
 import org.simantics.db.common.ProcedureBarrier;\r
 import org.simantics.db.common.WriteBindings;\r
 import org.simantics.db.common.procedure.adapter.AsyncMultiProcedureAdapter;\r
 import org.simantics.db.common.ProcedureBarrier;\r
 import org.simantics.db.common.WriteBindings;\r
 import org.simantics.db.common.procedure.adapter.AsyncMultiProcedureAdapter;\r
+import org.simantics.db.common.request.PropertyMapOfResource;\r
 import org.simantics.db.common.request.ResourceAsyncRead;\r
 import org.simantics.db.procedure.AsyncProcedure;\r
 import org.simantics.layer0.Layer0;\r
 import org.simantics.db.common.request.ResourceAsyncRead;\r
 import org.simantics.db.procedure.AsyncProcedure;\r
 import org.simantics.layer0.Layer0;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
 \r
 public class EscapedChildMapOfResource extends ResourceAsyncRead<Map<String, Resource>> {\r
 \r
 \r
 public class EscapedChildMapOfResource extends ResourceAsyncRead<Map<String, Resource>> {\r
 \r
+    private static final Logger LOGGER = LoggerFactory.getLogger(EscapedChildMapOfResource.class);\r
+\r
        public EscapedChildMapOfResource(Resource resource) {\r
            super(resource);\r
        }\r
        public EscapedChildMapOfResource(Resource resource) {\r
            super(resource);\r
        }\r
@@ -50,7 +55,7 @@ public class EscapedChildMapOfResource extends ResourceAsyncRead<Map<String, Res
                                                if (name != null) {\r
                                                        String escapedName = URIStringUtils.escape((String)name); \r
                                                        if (map.put(escapedName, child) != null)\r
                                                if (name != null) {\r
                                                        String escapedName = URIStringUtils.escape((String)name); \r
                                                        if (map.put(escapedName, child) != null)\r
-                                                               System.err.println(this + ": The database contains siblings with the same name " + escapedName + " (resource=" + resource.getResourceId() +").");\r
+                                                           LOGGER.error("The database contains siblings with the same name " + escapedName + " (resource=" + resource.getResourceId() +").");\r
                                                }\r
                                                barrier.dec(g, procedure, map);\r
                                        }\r
                                                }\r
                                                barrier.dec(g, procedure, map);\r
                                        }\r