diff options
author | Gary Benson <gbenson@redhat.com> | 2007-02-09 17:15:20 +0000 |
---|---|---|
committer | Gary Benson <gary@gcc.gnu.org> | 2007-02-09 17:15:20 +0000 |
commit | 87a8ec2bf7f8a81b54dfb56ef3c3141df42d2325 (patch) | |
tree | 9343ed0acb0a8385b4c0700740bec8d92d765b9f /libjava/classpath/javax | |
parent | 35a63f213123b668ffc007210f623fd36f91ad9a (diff) | |
download | gcc-87a8ec2bf7f8a81b54dfb56ef3c3141df42d2325.zip gcc-87a8ec2bf7f8a81b54dfb56ef3c3141df42d2325.tar.gz gcc-87a8ec2bf7f8a81b54dfb56ef3c3141df42d2325.tar.bz2 |
2007-02-09 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java
(quote): Initialize StringBuilder correctly.
From-SVN: r121765
Diffstat (limited to 'libjava/classpath/javax')
-rw-r--r-- | libjava/classpath/javax/management/ObjectName.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/classpath/javax/management/ObjectName.java b/libjava/classpath/javax/management/ObjectName.java index 0e6bf2f..573b984 100644 --- a/libjava/classpath/javax/management/ObjectName.java +++ b/libjava/classpath/javax/management/ObjectName.java @@ -674,7 +674,8 @@ public class ObjectName */ public static String quote(String string) { - StringBuilder builder = new StringBuilder('"'); + StringBuilder builder = new StringBuilder(); + builder.append('"'); for (int a = 0; a < string.length(); ++a) { char s = string.charAt(a); |