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/28 06:51:37 UTC
[netbeans-html4j] branch master updated: Avoiding use of lambdas to
increase portability
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 28e687f Avoiding use of lambdas to increase portability
28e687f is described below
commit 28e687f55da3b3c67424a217ec814d00a312da9e
Author: Jaroslav Tulach <ja...@apidesign.org>
AuthorDate: Mon Dec 28 07:51:17 2020 +0100
Avoiding use of lambdas to increase portability
---
.../java/org/netbeans/html/presenters/spi/Generic.java | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java b/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
index 473749c..8389870 100644
--- a/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
+++ b/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
@@ -696,12 +696,15 @@ abstract class Generic implements Fn.Presenter, Fn.KeepAlive, Flushable {
private Item dispatchPendingItem() {
final Item top = topMostCall();
if (top.method != null && top.done == null) {
- dispatch(() -> {
- synchronized (lock()) {
- Item pending = topMostCall();
- if (pending != null) {
- pending.inJava();
- lock().notifyAll();
+ dispatch(new Runnable() {
+ @Override
+ public void run() {
+ synchronized (lock()) {
+ Item pending = topMostCall();
+ if (pending != null) {
+ pending.inJava();
+ lock().notifyAll();
+ }
}
}
});
---------------------------------------------------------------------
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