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