src/java.base/share/classes/sun/security/provider/certpath/OCSPResponse.java

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

*** 810,827 **** */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SingleResponse: \n"); sb.append(certId); ! sb.append("\nCertStatus: "+ certStatus + "\n"); if (certStatus == CertStatus.REVOKED) { ! sb.append("revocationTime is " + revocationTime + "\n"); ! sb.append("revocationReason is " + revocationReason + "\n"); } ! sb.append("thisUpdate is " + thisUpdate + "\n"); if (nextUpdate != null) { ! sb.append("nextUpdate is " + nextUpdate + "\n"); } return sb.toString(); } } } --- 810,827 ---- */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SingleResponse: \n"); sb.append(certId); ! sb.append("\nCertStatus: ").append(certStatus).append('\n'); if (certStatus == CertStatus.REVOKED) { ! sb.append("revocationTime is ").append(revocationTime).append('\n'); ! sb.append("revocationReason is ").append(revocationReason).append('\n'); } ! sb.append("thisUpdate is ").append(thisUpdate).append('\n'); if (nextUpdate != null) { ! sb.append("nextUpdate is ").append(nextUpdate).append('\n'); } return sb.toString(); } } }