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/netbeans-html4j.git
The following commit(s) were added to refs/heads/master by this push: new a24e5d7a Avoid usage of ArrayList in the TCK a24e5d7a is described below commit a24e5d7a23a8141445e29d85f6c7c95cee127552 Author: Jaroslav Tulach <jaroslav.tul...@apidesign.org> AuthorDate: Fri May 13 20:36:15 2022 +0200 Avoid usage of ArrayList in the TCK --- .../src/main/java/net/java/html/json/tests/ObtainAndComputeTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json-tck/src/main/java/net/java/html/json/tests/ObtainAndComputeTest.java b/json-tck/src/main/java/net/java/html/json/tests/ObtainAndComputeTest.java index 76e6e019..3543c1bf 100644 --- a/json-tck/src/main/java/net/java/html/json/tests/ObtainAndComputeTest.java +++ b/json-tck/src/main/java/net/java/html/json/tests/ObtainAndComputeTest.java @@ -18,7 +18,6 @@ */ package net.java.html.json.tests; -import java.util.ArrayList; import java.util.List; import net.java.html.BrwsrCtx; import net.java.html.json.ComputedProperty; @@ -98,7 +97,7 @@ public class ObtainAndComputeTest { static final class ObtainModel { @ComputedProperty public static List<ObtainUser> filteredUsers(List<ObtainUser> users, String filter) { - List<ObtainUser> res = new ArrayList<>(); + List<ObtainUser> res = Models.asList(); for (ObtainUser user : users) { if (user.getEmail().contains(filter)) { res.add(user); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists