src/java.desktop/share/classes/javax/swing/MultiUIDefaults.java

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

@@ -193,15 +193,15 @@
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         Enumeration<?> keys = keys();
         while (keys.hasMoreElements()) {
             Object key = keys.nextElement();
-            sb.append(key + "=" + get(key) + ", ");
+            sb.append(key).append('=').append(get(key)).append(", ");
         }
         int length = sb.length();
         if (length > 1) {
-            sb.delete(length-2, length);
+            sb.delete(length - 2, length);
         }
-        sb.append("}");
+        sb.append('}');
         return sb.toString();
     }
 }