src/java.base/share/classes/java/security/PermissionCollection.java
changeset 58659 4113f16d5109
parent 58242 94bb65cb37d3
child 58679 9c3209ff7550
equal deleted inserted replaced
58658:55866aa5fb54 58659:4113f16d5109
   105     /**
   105     /**
   106      * Adds a permission object to the current collection of permission objects.
   106      * Adds a permission object to the current collection of permission objects.
   107      *
   107      *
   108      * @param permission the Permission object to add.
   108      * @param permission the Permission object to add.
   109      *
   109      *
   110      * @throws    SecurityException -  if this PermissionCollection object
   110      * @throws    SecurityException    if this PermissionCollection object
   111      *                                 has been marked readonly
   111      *                                 has been marked readonly
   112      * @throws    IllegalArgumentException - if this PermissionCollection
   112      * @throws    IllegalArgumentException   if this PermissionCollection
   113      *                object is a homogeneous collection and the permission
   113      *                object is a homogeneous collection and the permission
   114      *                is not of the correct type.
   114      *                is not of the correct type.
   115      */
   115      */
   116     public abstract void add(Permission permission);
   116     public abstract void add(Permission permission);
   117 
   117