src/java.management/share/classes/javax/management/openmbean/CompositeType.java

Print this page
rev 10521 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>

@@ -461,11 +461,11 @@
                 key = k.next();
                 if (i > 0) result.append(",");
                 result.append("(itemName=");
                 result.append(key);
                 result.append(",itemType=");
-                result.append(nameToType.get(key).toString() +")");
+                result.append(nameToType.get(key)).append(')');
                 i++;
             }
             result.append("))");
             myToString = result.toString();
         }