src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java

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

*** 2946,2957 **** htmlStr.append("<html>\n<body>\n<ul>\n"); for (int i = 0; i < values.length; i++) { Object obj = values[i]; String val = ((obj == null) ? "" : obj.toString()); ! plainStr.append(val + "\n"); ! htmlStr.append(" <li>" + val + "\n"); } // remove the last newline plainStr.deleteCharAt(plainStr.length() - 1); htmlStr.append("</ul>\n</body>\n</html>"); --- 2946,2957 ---- htmlStr.append("<html>\n<body>\n<ul>\n"); for (int i = 0; i < values.length; i++) { Object obj = values[i]; String val = ((obj == null) ? "" : obj.toString()); ! plainStr.append(val).append('\n'); ! htmlStr.append(" <li>").append(val).append('\n'); } // remove the last newline plainStr.deleteCharAt(plainStr.length() - 1); htmlStr.append("</ul>\n</body>\n</html>");