src/java.base/share/classes/java/security/PermissionCollection.java
changeset 58242 94bb65cb37d3
parent 57950 4612a3cfb927
child 58659 4113f16d5109
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
   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      * @exception SecurityException -  if this PermissionCollection object
   110      * @throws    SecurityException -  if this PermissionCollection object
   111      *                                 has been marked readonly
   111      *                                 has been marked readonly
   112      * @exception 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