jdk/src/java.base/share/classes/sun/security/pkcs/PKCS9Attributes.java
changeset 30033 b9c86c17164a
parent 25859 3317bb8137f4
equal deleted inserted replaced
30019:e7dbbef69d12 30033:b9c86c17164a
    83      */
    83      */
    84     public PKCS9Attributes(ObjectIdentifier[] permittedAttributes,
    84     public PKCS9Attributes(ObjectIdentifier[] permittedAttributes,
    85                            DerInputStream in) throws IOException {
    85                            DerInputStream in) throws IOException {
    86         if (permittedAttributes != null) {
    86         if (permittedAttributes != null) {
    87             this.permittedAttributes =
    87             this.permittedAttributes =
    88                 new Hashtable<ObjectIdentifier, ObjectIdentifier>(
    88                 new Hashtable<>(permittedAttributes.length);
    89                                                 permittedAttributes.length);
       
    90 
    89 
    91             for (int i = 0; i < permittedAttributes.length; i++)
    90             for (int i = 0; i < permittedAttributes.length; i++)
    92                 this.permittedAttributes.put(permittedAttributes[i],
    91                 this.permittedAttributes.put(permittedAttributes[i],
    93                                              permittedAttributes[i]);
    92                                              permittedAttributes[i]);
    94         } else {
    93         } else {