< prev index next >

src/java.base/share/classes/java/security/AllPermission.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 176,189 **** * Adds a permission to the AllPermissions. The key for the hash is * permission.path. * * @param permission the Permission object to add. * ! * @exception IllegalArgumentException - if the permission is not a * AllPermission * ! * @exception SecurityException - if this AllPermissionCollection object * has been marked readonly */ public void add(Permission permission) { if (! (permission instanceof AllPermission)) --- 176,189 ---- * Adds a permission to the AllPermissions. The key for the hash is * permission.path. * * @param permission the Permission object to add. * ! * @throws IllegalArgumentException - if the permission is not a * AllPermission * ! * @throws SecurityException - if this AllPermissionCollection object * has been marked readonly */ public void add(Permission permission) { if (! (permission instanceof AllPermission))
< prev index next >