X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjavascript%2Fjson%2FJSON.java;h=ff5dc44d722db54bb328789eb5cc68479e254c9b;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=4e9d1dd5707d536428295dcf95921849f8a59cee;hpb=8fa69554edf6aeb278b4a4afd8e2b60264fdccd8;p=jalview.git diff --git a/src/jalview/javascript/json/JSON.java b/src/jalview/javascript/json/JSON.java index 4e9d1dd..ff5dc44 100644 --- a/src/jalview/javascript/json/JSON.java +++ b/src/jalview/javascript/json/JSON.java @@ -19,27 +19,35 @@ import java.net.URL; * @author hansonr Bob Hanson St. Olaf College 1/24/2019 * */ -public class JSON { - - /** - * A simple encoding of sequential key/value pairs for a jQuery.ajax call. If - * the first key is "url" and the second is an object, then the ajax object is - * attached to that url as well, just for transport purposes within the system. - * - * @param keyValues assumed to be simple String,Object pairs. String objects - * will be surrounded by double quotes. - */ - @SuppressWarnings("static-access") - public static Object setAjax(Object... keyValues) { - return /** @j2sNative swingjs.JSUtil.setAjax$OA(keyValues) || */null; - } - - public static void setAjax(URL url) { +public class JSON +{ + + /** + * A simple encoding of sequential key/value pairs for a jQuery.ajax call. If + * the first key is "url" and the second is an object, then the ajax object is + * attached to that url as well, just for transport purposes within the + * system. + * + * @param keyValues + * assumed to be simple String,Object pairs. String objects will be + * surrounded by double quotes. + */ + @SuppressWarnings("static-access") + public static Object setAjax(Object... keyValues) + { + return /** @j2sNative swingjs.JSUtil.setAjax$OA(keyValues) || */ + null; + } + + public static void setAjax(URL url) + { /** @j2sNative swingjs.JSUtil.setAjax$java_net_URL(url); */ - } + } - public static BufferedReader getJSONReader(InputStream is) { - return /** @j2sNative swingjs.JSUtil.getJSONReader$O(is) || */null; + public static BufferedReader getJSONReader(InputStream is) + { + return /** @j2sNative swingjs.JSUtil.getJSONReader$O(is) || */ + null; } /** @@ -54,8 +62,10 @@ public class JSON { null; } - public static String stringify(Object obj) { - return /** @j2sNative swingjs.JSUtil.stringifyJSON$O(obj) || */null; - } + public static String stringify(Object obj) + { + return /** @j2sNative swingjs.JSUtil.stringifyJSON$O(obj) || */ + null; + } }