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

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

@@ -132,10 +132,10 @@
      * @return a formatted string describing the parameters
      */
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("CollectionCertStoreParameters: [\n");
-        sb.append("  collection: " + coll + "\n");
-        sb.append("]");
+        sb.append("  collection: ").append(coll).append('\n');
+        sb.append(']');
         return sb.toString();
     }
 }