aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/javax
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 /libjava/classpath/javax
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
Diffstat (limited to 'libjava/classpath/javax')
-rw-r--r--libjava/classpath/javax/management/ObjectName.java3
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);