src/java.base/share/classes/java/security/KeyStore.java

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

@@ -608,12 +608,12 @@
          * Returns a string representation of this PrivateKeyEntry.
          * @return a string representation of this PrivateKeyEntry.
          */
         public String toString() {
             StringBuilder sb = new StringBuilder();
-            sb.append("Private key entry and certificate chain with "
-                + chain.length + " elements:\r\n");
+            sb.append("Private key entry and certificate chain with ")
+                    .append(chain.length).append(" elements:\r\n");
             for (Certificate cert : chain) {
                 sb.append(cert);
                 sb.append("\r\n");
             }
             return sb.toString();