src/java.base/share/classes/sun/security/pkcs/SigningCertificateInfo.java

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

@@ -156,12 +156,12 @@
         if (hexDumper == null) {
             hexDumper = new HexDumpEncoder();
         }
         sb.append(hexDumper.encode(certHash));
         if (issuer != null && serialNumber != null) {
-            sb.append("\n\tIssuer: " + issuer + "\n");
-            sb.append("\t" + serialNumber);
+            sb.append("\n\tIssuer: ").append(issuer).append('\n');
+            sb.append('\t').append(serialNumber);
         }
         sb.append("\n]");
         return sb.toString();
     }
 }