src/java.base/share/classes/sun/security/x509/X509CertImpl.java

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

*** 800,814 **** return ""; StringBuilder sb = new StringBuilder(); sb.append("[\n"); ! sb.append(info.toString() + "\n"); ! sb.append(" Algorithm: [" + algId.toString() + "]\n"); HexDumpEncoder encoder = new HexDumpEncoder(); ! sb.append(" Signature:\n" + encoder.encodeBuffer(signature)); sb.append("\n]"); return sb.toString(); } --- 800,814 ---- return ""; StringBuilder sb = new StringBuilder(); sb.append("[\n"); ! sb.append(info).append('\n'); ! sb.append(" Algorithm: [").append(algId).append("]\n"); HexDumpEncoder encoder = new HexDumpEncoder(); ! sb.append(" Signature:\n").append(encoder.encodeBuffer(signature)); sb.append("\n]"); return sb.toString(); }