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

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


 117      *
 118      * @return the copy
 119      */
 120     public Object clone() {
 121         try {
 122             return super.clone();
 123         } catch (CloneNotSupportedException e) {
 124             /* Cannot happen */
 125             throw new InternalError(e.toString(), e);
 126         }
 127     }
 128 
 129     /**
 130      * Returns a formatted string describing the parameters.
 131      *
 132      * @return a formatted string describing the parameters
 133      */
 134     public String toString() {
 135         StringBuilder sb = new StringBuilder();
 136         sb.append("CollectionCertStoreParameters: [\n");
 137         sb.append("  collection: " + coll + "\n");
 138         sb.append("]");
 139         return sb.toString();
 140     }
 141 }


 117      *
 118      * @return the copy
 119      */
 120     public Object clone() {
 121         try {
 122             return super.clone();
 123         } catch (CloneNotSupportedException e) {
 124             /* Cannot happen */
 125             throw new InternalError(e.toString(), e);
 126         }
 127     }
 128 
 129     /**
 130      * Returns a formatted string describing the parameters.
 131      *
 132      * @return a formatted string describing the parameters
 133      */
 134     public String toString() {
 135         StringBuilder sb = new StringBuilder();
 136         sb.append("CollectionCertStoreParameters: [\n");
 137         sb.append("  collection: ").append(coll).append('\n');
 138         sb.append(']');
 139         return sb.toString();
 140     }
 141 }