src/java.management/share/classes/sun/management/Agent.java

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

*** 500,510 **** if (params == null || params.length == 0) { error(key); } else { StringBuilder message = new StringBuilder(params[0]); for (int i = 1; i < params.length; i++) { ! message.append(" " + params[i]); } error(key, message.toString()); } } --- 500,510 ---- if (params == null || params.length == 0) { error(key); } else { StringBuilder message = new StringBuilder(params[0]); for (int i = 1; i < params.length; i++) { ! message.append(' ').append(params[i]); } error(key, message.toString()); } }