< prev index next >

src/java.base/share/classes/java/net/SocketPermission.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

*** 1359,1372 **** * Adds a permission to the SocketPermissions. The key for the hash is * the name in the case of wildcards, or all the IP addresses. * * @param permission the Permission object to add. * ! * @exception IllegalArgumentException - if the permission is not a * SocketPermission * ! * @exception SecurityException - if this SocketPermissionCollection object * has been marked readonly */ @Override public void add(Permission permission) { if (! (permission instanceof SocketPermission)) --- 1359,1372 ---- * Adds a permission to the SocketPermissions. The key for the hash is * the name in the case of wildcards, or all the IP addresses. * * @param permission the Permission object to add. * ! * @throws IllegalArgumentException - if the permission is not a * SocketPermission * ! * @throws SecurityException - if this SocketPermissionCollection object * has been marked readonly */ @Override public void add(Permission permission) { if (! (permission instanceof SocketPermission))
< prev index next >