2007-02-09 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java (quote): Initialize StringBuilder correctly. From-SVN: r121765
This commit is contained in:
parent
35a63f2131
commit
87a8ec2bf7
3 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue