You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2017/11/05 14:28:20 UTC
[incubator-netbeans-html4j] branch master updated: Use simple
Models.asList instead of complicated creation of a list from model class
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-html4j.git
The following commit(s) were added to refs/heads/master by this push:
new 69c7c38 Use simple Models.asList instead of complicated creation of a list from model class
69c7c38 is described below
commit 69c7c38b6b4e993876e5731ab9a41c55ee830f02
Author: Jaroslav Tulach <ja...@oracle.com>
AuthorDate: Sun Nov 5 15:13:14 2017 +0100
Use simple Models.asList instead of complicated creation of a list from model class
---
json-tck/src/main/java/net/java/html/json/tests/Utils.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/json-tck/src/main/java/net/java/html/json/tests/Utils.java b/json-tck/src/main/java/net/java/html/json/tests/Utils.java
index 486b507..d210134 100644
--- a/json-tck/src/main/java/net/java/html/json/tests/Utils.java
+++ b/json-tck/src/main/java/net/java/html/json/tests/Utils.java
@@ -18,12 +18,12 @@
*/
package net.java.html.json.tests;
-import java.util.List;
import java.util.Map;
import java.util.ServiceLoader;
import java.util.Timer;
import java.util.TimerTask;
import net.java.html.BrwsrCtx;
+import net.java.html.json.Models;
import org.netbeans.html.json.tck.KnockoutTCK;
/**
@@ -100,9 +100,7 @@ public final class Utils {
private static Iterable<KnockoutTCK> tcks(Class<?> clazz) {
if (instantiatedTCK != null) {
- List<KnockoutTCK> l = (List<KnockoutTCK>)(Object)new People().getInfo();
- l.add(instantiatedTCK);
- return l;
+ return Models.asList(instantiatedTCK);
}
return ServiceLoader.load(KnockoutTCK.class, cl(clazz));
}
--
To stop receiving notification emails like this one, please contact
['"commits@netbeans.apache.org" <co...@netbeans.apache.org>'].