src/java.naming/share/classes/javax/naming/RefAddr.java

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

*** 137,149 **** * The string consists of the address's type and contents with labels. * This representation is intended for display only and not to be parsed. * @return The non-null string representation of this address. */ public String toString(){ ! StringBuilder str = new StringBuilder("Type: " + addrType + "\n"); ! ! str.append("Content: " + getContent() + "\n"); return (str.toString()); } /** * Use serialVersionUID from JNDI 1.1.1 for interoperability --- 137,149 ---- * The string consists of the address's type and contents with labels. * This representation is intended for display only and not to be parsed. * @return The non-null string representation of this address. */ public String toString(){ ! StringBuilder str = new StringBuilder(); ! str.append("Type: ").append(addrType).append('\n'); ! str.append("Content: ").append(getContent()).append('\n'); return (str.toString()); } /** * Use serialVersionUID from JNDI 1.1.1 for interoperability