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,207 **** StringBuilder sb = new StringBuilder(); sb.append("{"); Enumeration<?> keys = keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); ! sb.append(key + "=" + get(key) + ", "); } int length = sb.length(); if (length > 1) { ! sb.delete(length-2, length); } ! sb.append("}"); return sb.toString(); } } --- 193,207 ---- StringBuilder sb = new StringBuilder(); sb.append("{"); Enumeration<?> keys = keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); ! sb.append(key).append('=').append(get(key)).append(", "); } int length = sb.length(); if (length > 1) { ! sb.delete(length - 2, length); } ! sb.append('}'); return sb.toString(); } }