aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginDebug.java7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b66b1c3..8b531a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-01 Denis Lila <[email protected]>
+
+ * plugin/icedteanp/java/sun/applet/PluginDebug.java:
+ (debug): Use StringBuilder to build the string.
+
2011-03-31 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/Launcher.java: Add parserSettings and extra.
diff --git a/plugin/icedteanp/java/sun/applet/PluginDebug.java b/plugin/icedteanp/java/sun/applet/PluginDebug.java
index 4cbbe53..54787a4 100644
--- a/plugin/icedteanp/java/sun/applet/PluginDebug.java
+++ b/plugin/icedteanp/java/sun/applet/PluginDebug.java
@@ -43,9 +43,14 @@ public class PluginDebug {
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());
}
}
}