equal
deleted
inserted
replaced
176 * Adds a permission to the AllPermissions. The key for the hash is |
176 * Adds a permission to the AllPermissions. The key for the hash is |
177 * permission.path. |
177 * permission.path. |
178 * |
178 * |
179 * @param permission the Permission object to add. |
179 * @param permission the Permission object to add. |
180 * |
180 * |
181 * @throws IllegalArgumentException - if the permission is not a |
181 * @throws IllegalArgumentException if the permission is not an |
182 * AllPermission |
182 * AllPermission |
183 * |
183 * |
184 * @throws SecurityException - if this AllPermissionCollection object |
184 * @throws SecurityException if this AllPermissionCollection object |
185 * has been marked readonly |
185 * has been marked readonly |
186 */ |
186 */ |
187 |
187 |
188 public void add(Permission permission) { |
188 public void add(Permission permission) { |
189 if (! (permission instanceof AllPermission)) |
189 if (! (permission instanceof AllPermission)) |