src/java.base/share/classes/java/security/cert/PKIXCertPathBuilderResult.java

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

*** 107,119 **** * {@code PKIXCertPathBuilderResult} */ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("PKIXCertPathBuilderResult: [\n"); ! sb.append(" Certification Path: " + certPath + "\n"); ! sb.append(" Trust Anchor: " + getTrustAnchor().toString() + "\n"); ! sb.append(" Policy Tree: " + String.valueOf(getPolicyTree()) + "\n"); ! sb.append(" Subject Public Key: " + getPublicKey() + "\n"); ! sb.append("]"); return sb.toString(); } } --- 107,121 ---- * {@code PKIXCertPathBuilderResult} */ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("PKIXCertPathBuilderResult: [\n"); ! sb.append(" Certification Path: ").append(certPath).append('\n'); ! sb.append(" Trust Anchor: ").append(getTrustAnchor()) ! .append('\n'); ! sb.append(" Policy Tree: ").append(getPolicyTree()) ! .append('\n'); ! sb.append(" Subject Public Key: ").append(getPublicKey()).append('\n'); ! sb.append(']'); return sb.toString(); } }