src/java.base/share/classes/java/net/SocketPermission.java
changeset 58659 4113f16d5109
parent 58653 71fef5fae9cc
child 58679 9c3209ff7550
equal deleted inserted replaced
58658:55866aa5fb54 58659:4113f16d5109
  1365      * Adds a permission to the SocketPermissions. The key for the hash is
  1365      * Adds a permission to the SocketPermissions. The key for the hash is
  1366      * the name in the case of wildcards, or all the IP addresses.
  1366      * the name in the case of wildcards, or all the IP addresses.
  1367      *
  1367      *
  1368      * @param permission the Permission object to add.
  1368      * @param permission the Permission object to add.
  1369      *
  1369      *
  1370      * @throws    IllegalArgumentException - if the permission is not a
  1370      * @throws    IllegalArgumentException   if the permission is not a
  1371      *                                       SocketPermission
  1371      *                                       SocketPermission
  1372      *
  1372      *
  1373      * @throws    SecurityException - if this SocketPermissionCollection object
  1373      * @throws    SecurityException   if this SocketPermissionCollection object
  1374      *                                has been marked readonly
  1374      *                                has been marked readonly
  1375      */
  1375      */
  1376     @Override
  1376     @Override
  1377     public void add(Permission permission) {
  1377     public void add(Permission permission) {
  1378         if (! (permission instanceof SocketPermission))
  1378         if (! (permission instanceof SocketPermission))