src/java.base/share/classes/java/net/SocketPermission.java
changeset 58242 94bb65cb37d3
parent 57956 e0b8b019d2f5
child 58388 a819c684964b
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
  1359      * Adds a permission to the SocketPermissions. The key for the hash is
  1359      * Adds a permission to the SocketPermissions. The key for the hash is
  1360      * the name in the case of wildcards, or all the IP addresses.
  1360      * the name in the case of wildcards, or all the IP addresses.
  1361      *
  1361      *
  1362      * @param permission the Permission object to add.
  1362      * @param permission the Permission object to add.
  1363      *
  1363      *
  1364      * @exception IllegalArgumentException - if the permission is not a
  1364      * @throws    IllegalArgumentException - if the permission is not a
  1365      *                                       SocketPermission
  1365      *                                       SocketPermission
  1366      *
  1366      *
  1367      * @exception SecurityException - if this SocketPermissionCollection object
  1367      * @throws    SecurityException - if this SocketPermissionCollection object
  1368      *                                has been marked readonly
  1368      *                                has been marked readonly
  1369      */
  1369      */
  1370     @Override
  1370     @Override
  1371     public void add(Permission permission) {
  1371     public void add(Permission permission) {
  1372         if (! (permission instanceof SocketPermission))
  1372         if (! (permission instanceof SocketPermission))