From 7a7bd2ef05d809809f34ee2b11925966da922383 Mon Sep 17 00:00:00 2001 From: Denis Lila Date: Tue, 5 Apr 2011 14:38:22 -0400 Subject: Use varargs in PluginDebug.debug calls in JSObject.java. --- ChangeLog | 6 ++++++ .../icedteanp/java/netscape/javascript/JSObject.java | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 755b304..c1510b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-05 Denis Lila + + * plugin/icedteanp/java/netscape/javascript/JSObject.java: + Replaced every instance of PluginDebug.debug(a + b + c...) + with PluginDebug.debug(a, b, c...). + 2011-04-05 Denis Lila * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: diff --git a/plugin/icedteanp/java/netscape/javascript/JSObject.java b/plugin/icedteanp/java/netscape/javascript/JSObject.java index d93fa9c..a2f200f 100644 --- a/plugin/icedteanp/java/netscape/javascript/JSObject.java +++ b/plugin/icedteanp/java/netscape/javascript/JSObject.java @@ -150,10 +150,10 @@ public final class JSObject { * Equivalent to "this.name" in JavaScript. */ public Object getMember(String name) { - PluginDebug.debug("JSObject.getMember " + name); + PluginDebug.debug("JSObject.getMember ", name); Object o = PluginAppletViewer.getMember(internal, name); - PluginDebug.debug("JSObject.getMember GOT " + o); + PluginDebug.debug("JSObject.getMember GOT ", o); return o; } @@ -163,7 +163,7 @@ public final class JSObject { */ // public Object getMember(int index) { return getSlot(index); } public Object getSlot(int index) { - PluginDebug.debug("JSObject.getSlot " + index); + PluginDebug.debug("JSObject.getSlot ", index); return PluginAppletViewer.getSlot(internal, index); } @@ -173,7 +173,7 @@ public final class JSObject { * Equivalent to "this.name = value" in JavaScript. */ public void setMember(String name, Object value) { - PluginDebug.debug("JSObject.setMember " + name + " " + value); + PluginDebug.debug("JSObject.setMember ", name, " ", value); PluginAppletViewer.setMember(internal, name, value); } @@ -186,7 +186,7 @@ public final class JSObject { // setSlot(index, value); // } public void setSlot(int index, Object value) { - PluginDebug.debug("JSObject.setSlot " + index + " " + value); + PluginDebug.debug("JSObject.setSlot ", index, " ", value); PluginAppletViewer.setSlot(internal, index, value); } @@ -195,7 +195,7 @@ public final class JSObject { * Removes a named member of a JavaScript object. */ public void removeMember(String name) { - PluginDebug.debug("JSObject.removeMember " + name); + PluginDebug.debug("JSObject.removeMember ", name); PluginAppletViewer.removeMember(internal, name); } @@ -208,9 +208,9 @@ public final class JSObject { if (args == null) args = new Object[0]; - PluginDebug.debug("JSObject.call " + methodName); + PluginDebug.debug("JSObject.call ", methodName); for (int i = 0; i < args.length; i++) - PluginDebug.debug(" " + args[i]); + PluginDebug.debug(" ", args[i]); PluginDebug.debug(""); return PluginAppletViewer.call(internal, methodName, args); } @@ -221,7 +221,7 @@ public final class JSObject { * given by "this". */ public Object eval(String s) { - PluginDebug.debug("JSObject.eval " + s); + PluginDebug.debug("JSObject.eval ", s); return PluginAppletViewer.eval(internal, s); } @@ -246,7 +246,7 @@ public final class JSObject { long internal = 0; internal = ((PluginAppletViewer) applet.getAppletContext()).getWindow(); - PluginDebug.debug("GOT IT: " + internal); + PluginDebug.debug("GOT IT: ", internal); return new JSObject(internal); } -- cgit v1.2.3