/hg/icedtea-web: Fix PluginDebug regression.
dlila at icedtea.classpath.org
dlila at icedtea.classpath.org
Fri Apr 1 13:57:18 PDT 2011
changeset 30276d468815 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=30276d468815
author: dlila
date: Fri Apr 01 12:57:18 2011 -0400
Fix PluginDebug regression.
diffstat:
ChangeLog | 5 +++++
plugin/icedteanp/java/sun/applet/PluginDebug.java | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 1d604ccd9b6b -r 30276d468815 ChangeLog
--- a/ChangeLog Thu Mar 31 18:19:31 2011 -0400
+++ b/ChangeLog Fri Apr 01 12:57:18 2011 -0400
@@ -1,3 +1,8 @@
+2011-04-01 Denis Lila <dlila at redhat.com>
+
+ * plugin/icedteanp/java/sun/applet/PluginDebug.java:
+ (debug): Use StringBuilder to build the string.
+
2011-03-31 Omair Majid <omajid at redhat.com>
* netx/net/sourceforge/jnlp/Launcher.java: Add parserSettings and extra.
diff -r 1d604ccd9b6b -r 30276d468815 plugin/icedteanp/java/sun/applet/PluginDebug.java
--- a/plugin/icedteanp/java/sun/applet/PluginDebug.java Thu Mar 31 18:19:31 2011 -0400
+++ b/plugin/icedteanp/java/sun/applet/PluginDebug.java Fri Apr 01 12:57:18 2011 -0400
@@ -43,9 +43,14 @@
public static void debug(Object... messageChunks) {
if (DEBUG) {
+ if (messageChunks == null) {
+ messageChunks = new Object[] {null};
+ }
+ StringBuilder b = new StringBuilder();
for (Object chunk : messageChunks) {
- System.err.println(chunk.toString());
+ b.append(chunk);
}
+ System.err.println(b.toString());
}
}
}
More information about the distro-pkg-dev
mailing list