equal
deleted
inserted
replaced
461 * Adds a permission to the PropertyPermissions. The key for the hash is |
461 * Adds a permission to the PropertyPermissions. The key for the hash is |
462 * the name. |
462 * the name. |
463 * |
463 * |
464 * @param permission the Permission object to add. |
464 * @param permission the Permission object to add. |
465 * |
465 * |
466 * @throws IllegalArgumentException - if the permission is not a |
466 * @throws IllegalArgumentException if the permission is not a |
467 * PropertyPermission |
467 * PropertyPermission |
468 * |
468 * |
469 * @throws SecurityException - if this PropertyPermissionCollection |
469 * @throws SecurityException if this PropertyPermissionCollection |
470 * object has been marked readonly |
470 * object has been marked readonly |
471 */ |
471 */ |
472 @Override |
472 @Override |
473 public void add(Permission permission) { |
473 public void add(Permission permission) { |
474 if (! (permission instanceof PropertyPermission)) |
474 if (! (permission instanceof PropertyPermission)) |