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 2020/12/29 06:50:04 UTC

[netbeans-html4j] 01/03: Avoid method references to make the TCK more portable

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

commit f144608464d77ea319a30665ccff72682e530a1e
Author: Jaroslav Tulach <ja...@apidesign.org>
AuthorDate: Mon Dec 28 17:52:19 2020 +0100

    Avoid method references to make the TCK more portable
---
 .../java/net/java/html/js/tests/AsyncJavaScriptAction.java | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java b/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java
index 98e650f..e49713d 100644
--- a/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java
+++ b/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java
@@ -88,11 +88,21 @@ final class AsyncJavaScriptAction {
     }
 
     public void testWithCallback() {
-        performTheTest(this::enterJavaScriptAndPerformIteration);
+        performTheTest(new Function<Integer,Integer>() {
+            @Override
+            public Integer apply(Integer t) {
+                return enterJavaScriptAndPerformIteration(t);
+            }
+        });
     }
 
     public void testWithoutCallback() {
-        performTheTest(this::performIteration);
+        performTheTest(new Function<Integer,Integer>() {
+            @Override
+            public Integer apply(Integer t) {
+                return performIteration(t);
+            }
+        });
     }
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists