From d05c69943ac3cf2c049a7d0a96738fd9820ab37e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 19 Nov 2019 15:35:05 +0000 Subject: [PATCH] JAL-3210 use JSUtil methods getFileBytes, getApplet --- src/jalview/util/Platform.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index e9afb70..ef509df 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -337,7 +337,7 @@ public class Platform public static byte[] getFileBytes(File f) { - return /** @j2sNative f && swingjs.JSUtil.getFileBytes$O(f) || */ + return /** @j2sNative f && swingjs.JSUtil.getFileBytes$java_io_File(f) || */ null; } @@ -430,10 +430,8 @@ public class Platform public static String getUniqueAppletID() { - @SuppressWarnings("unused") - ThreadGroup g = Thread.currentThread().getThreadGroup(); /** - * @j2sNative return g.getHtmlApplet$()._uniqueId; + * @j2sNative return swingjs.JSUtil.getApplet$()._uniqueId; * */ return null; @@ -454,13 +452,11 @@ public class Platform { return; } - @SuppressWarnings("unused") - ThreadGroup g = Thread.currentThread().getThreadGroup(); String id = getUniqueAppletID(); String key = "", value = ""; /** - * @j2sNative var info = g.getHtmlApplet$().__Info || {}; for (var key in - * info) { if (key.indexOf(prefix) == 0) { value = "" + + * @j2sNative var info = swingjs.JSUtil.getApplet$().__Info || {}; for (var + * key in info) { if (key.indexOf(prefix) == 0) { value = "" + * info[key]; */ -- 1.7.10.2