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 08:27:38 UTC
[netbeans-html4j] branch master updated: BrwsrCtx's code snippet
cannot reference @JavaScriptBody annotation
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 2389b8c BrwsrCtx's code snippet cannot reference @JavaScriptBody annotation
2389b8c is described below
commit 2389b8c4981dafbaa067de82ce13fd8f9c1a1c8f
Author: Jaroslav Tulach <ja...@apidesign.org>
AuthorDate: Mon Dec 28 09:24:57 2020 +0100
BrwsrCtx's code snippet cannot reference @JavaScriptBody annotation
---
boot-fx/src/test/java/org/netbeans/html/boot/fx/Periodicaly.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/boot-fx/src/test/java/org/netbeans/html/boot/fx/Periodicaly.java b/boot-fx/src/test/java/org/netbeans/html/boot/fx/Periodicaly.java
index f0e6e66..a14f68b 100644
--- a/boot-fx/src/test/java/org/netbeans/html/boot/fx/Periodicaly.java
+++ b/boot-fx/src/test/java/org/netbeans/html/boot/fx/Periodicaly.java
@@ -57,9 +57,6 @@ public final class Periodicaly extends TimerTask {
t.scheduleAtFixedRate(task, 0, 100);
}
- @JavaScriptBody(args = { "a", "b" }, body = "return a + b")
- private static native int plus(int a, int b);
-
void codeThatNeedsToBeRunInABrowserEnvironment() {
// invokes JavaScript function in the browser environment
counter = plus(counter, 1);
@@ -76,4 +73,7 @@ public final class Periodicaly extends TimerTask {
Periodicaly.class.wait();
}
}
+
+ @JavaScriptBody(args = { "a", "b" }, body = "return a + b")
+ private static native int plus(int a, int b);
}
---------------------------------------------------------------------
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