src/java.naming/share/classes/javax/naming/Reference.java
Print this page
rev 10537 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>
*** 362,373 ****
* This representation is intended for display only and not to be parsed.
*
* @return The non-null string representation of this reference.
*/
public String toString() {
! StringBuilder sb = new StringBuilder("Reference Class Name: " +
! className + "\n");
int len = addrs.size();
for (int i = 0; i < len; i++)
sb.append(get(i).toString());
return sb.toString();
--- 362,374 ----
* This representation is intended for display only and not to be parsed.
*
* @return The non-null string representation of this reference.
*/
public String toString() {
! StringBuilder sb = new StringBuilder();
! sb.append("Reference Class Name: ");
! sb.append(className).append('\n');
int len = addrs.size();
for (int i = 0; i < len; i++)
sb.append(get(i).toString());
return sb.toString();