src/java.base/share/classes/com/sun/crypto/provider/RC2Parameters.java
Print this page
rev 10521 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>
*** 214,229 ****
* Returns a formatted string describing the parameters.
*/
protected String engineToString() {
String LINE_SEP = System.getProperty("line.separator");
HexDumpEncoder encoder = new HexDumpEncoder();
! StringBuilder sb
! = new StringBuilder(LINE_SEP + " iv:" + LINE_SEP + "["
! + encoder.encodeBuffer(iv) + "]");
if (version != 0) {
! sb.append(LINE_SEP + "version:" + LINE_SEP
! + version + LINE_SEP);
}
return sb.toString();
}
}
--- 214,229 ----
* Returns a formatted string describing the parameters.
*/
protected String engineToString() {
String LINE_SEP = System.getProperty("line.separator");
HexDumpEncoder encoder = new HexDumpEncoder();
! StringBuilder sb = new StringBuilder();
! sb.append(LINE_SEP).append(" iv:").append(LINE_SEP).append('[')
! .append(encoder.encodeBuffer(iv)).append(']');
if (version != 0) {
! sb.append(LINE_SEP).append("version:").append(LINE_SEP)
! .append(version).append(LINE_SEP);
}
return sb.toString();
}
}