src/java.base/share/classes/java/security/AllPermission.java
changeset 58659 4113f16d5109
parent 58242 94bb65cb37d3
child 58679 9c3209ff7550
equal deleted inserted replaced
58658:55866aa5fb54 58659:4113f16d5109
   176      * Adds a permission to the AllPermissions. The key for the hash is
   176      * Adds a permission to the AllPermissions. The key for the hash is
   177      * permission.path.
   177      * permission.path.
   178      *
   178      *
   179      * @param permission the Permission object to add.
   179      * @param permission the Permission object to add.
   180      *
   180      *
   181      * @throws    IllegalArgumentException - if the permission is not a
   181      * @throws    IllegalArgumentException   if the permission is not an
   182      *                                       AllPermission
   182      *                                       AllPermission
   183      *
   183      *
   184      * @throws    SecurityException - if this AllPermissionCollection object
   184      * @throws    SecurityException   if this AllPermissionCollection object
   185      *                                has been marked readonly
   185      *                                has been marked readonly
   186      */
   186      */
   187 
   187 
   188     public void add(Permission permission) {
   188     public void add(Permission permission) {
   189         if (! (permission instanceof AllPermission))
   189         if (! (permission instanceof AllPermission))