src/jdk.jcmd/share/classes/sun/tools/jstat/RawOutputFormatter.java

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

*** 48,58 **** if (header == null) { // build the header string and prune out any unwanted monitors StringBuilder headerBuilder = new StringBuilder(); for (Iterator<Monitor> i = logged.iterator(); i.hasNext(); /* empty */ ) { Monitor m = i.next(); ! headerBuilder.append(m.getName() + " "); } header = headerBuilder.toString(); } return header; } --- 48,58 ---- if (header == null) { // build the header string and prune out any unwanted monitors StringBuilder headerBuilder = new StringBuilder(); for (Iterator<Monitor> i = logged.iterator(); i.hasNext(); /* empty */ ) { Monitor m = i.next(); ! headerBuilder.append(m.getName()).append(' '); } header = headerBuilder.toString(); } return header; }