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
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue