equal
deleted
inserted
replaced
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)) |