From: Tuukka Lehtonen Date: Fri, 1 Sep 2017 13:00:37 +0000 (+0300) Subject: Fixed function name clash in Simantics/DB#createList X-Git-Tag: v1.31.0~211 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=4be719091f987e1377657949584f28665c852ce3 Fixed function name clash in Simantics/DB#createList The second createList is now createListWithType which takes the type of the list as the first argument. refs #7390 Change-Id: I8b52f792cb683bfc764ecd7a53bfb9b0c76b4d5f --- diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/ListUtils.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/ListUtils.java index 15910147a..4d6518524 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/ListUtils.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/ListUtils.java @@ -50,7 +50,7 @@ public class ListUtils { } /** - * Creates a list containing the givens {@code elements}. + * Creates a list containing the given {@code elements}. */ public static Resource create(WriteGraph g, Iterable elements) throws DatabaseException { Layer0 L0 = Layer0.getInstance(g); @@ -63,7 +63,7 @@ public class ListUtils { } /** - * Creates a list containing the givens {@code elements}. + * Creates a list of the given list type containing the given {@code elements}. */ public static Resource create(WriteGraph g, Resource type, Iterable elements) throws DatabaseException { Layer0 L0 = Layer0.getInstance(g); diff --git a/bundles/org.simantics.scl.db/scl/Simantics/DB.scl b/bundles/org.simantics.scl.db/scl/Simantics/DB.scl index 30608067d..702c710c8 100644 --- a/bundles/org.simantics.scl.db/scl/Simantics/DB.scl +++ b/bundles/org.simantics.scl.db/scl/Simantics/DB.scl @@ -270,7 +270,7 @@ importJava "org.simantics.db.common.utils.ListUtils" where createList :: [Resource] -> Resource @JavaName create - createList :: Resource -> [Resource] -> Resource + createListWithType :: Resource -> [Resource] -> Resource @javaName insertBack insertBack :: Resource -> [Resource] -> ()