aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2007-02-09 17:15:20 +0000
committerGary Benson <gary@gcc.gnu.org>2007-02-09 17:15:20 +0000
commit87a8ec2bf7f8a81b54dfb56ef3c3141df42d2325 (patch)
tree9343ed0acb0a8385b4c0700740bec8d92d765b9f
parent35a63f213123b668ffc007210f623fd36f91ad9a (diff)
downloadgcc-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
-rw-r--r--libjava/classpath/ChangeLog.gcj5
-rw-r--r--libjava/classpath/javax/management/ObjectName.java3
-rw-r--r--libjava/classpath/lib/javax/management/ObjectName.classbin8761 -> 8752 bytes
3 files changed, 7 insertions, 1 deletions
diff --git a/libjava/classpath/ChangeLog.gcj b/libjava/classpath/ChangeLog.gcj
index 9349f37..336813b 100644
--- a/libjava/classpath/ChangeLog.gcj
+++ b/libjava/classpath/ChangeLog.gcj
@@ -1,3 +1,8 @@
+2007-02-09 Gary Benson <gbenson@redhat.com>
+
+ * javax/management/ObjectName.java
+ (quote): Initialize StringBuilder correctly.
+
2007-02-08 Gary Benson <gbenson@redhat.com>
* javax/management/MBeanServerFactory.java
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);
diff --git a/libjava/classpath/lib/javax/management/ObjectName.class b/libjava/classpath/lib/javax/management/ObjectName.class
index 9a94089..63b44d4 100644
--- a/libjava/classpath/lib/javax/management/ObjectName.class
+++ b/libjava/classpath/lib/javax/management/ObjectName.class
Binary files differ