< prev index next >
src/java.base/share/classes/java/security/AccessController.java
Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea
@@ -296,11 +296,11 @@
*
* @param action the action to be performed.
*
* @return the value returned by the action's {@code run} method.
*
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction,AccessControlContext)
* @see #doPrivileged(PrivilegedExceptionAction)
* @see #doPrivilegedWithCombiner(PrivilegedAction)
* @see java.security.DomainCombiner
@@ -328,11 +328,11 @@
*
* @param action the action to be performed.
*
* @return the value returned by the action's {@code run} method.
*
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction)
* @see java.security.DomainCombiner
*
* @since 1.6
@@ -375,11 +375,11 @@
* the specified action. If the context is
* {@code null}, then no additional restriction is applied.
*
* @return the value returned by the action's {@code run} method.
*
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction)
* @see #doPrivileged(PrivilegedExceptionAction,AccessControlContext)
*/
@CallerSensitive
@@ -532,13 +532,13 @@
*
* @param action the action to be performed
*
* @return the value returned by the action's {@code run} method
*
- * @exception PrivilegedActionException if the specified action's
+ * @throws PrivilegedActionException if the specified action's
* {@code run} method threw a <i>checked</i> exception
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction)
* @see #doPrivileged(PrivilegedExceptionAction,AccessControlContext)
* @see #doPrivilegedWithCombiner(PrivilegedExceptionAction)
* @see java.security.DomainCombiner
@@ -575,13 +575,13 @@
*
* @param action the action to be performed.
*
* @return the value returned by the action's {@code run} method
*
- * @exception PrivilegedActionException if the specified action's
+ * @throws PrivilegedActionException if the specified action's
* {@code run} method threw a <i>checked</i> exception
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction)
* @see #doPrivileged(PrivilegedExceptionAction,AccessControlContext)
* @see java.security.DomainCombiner
*
@@ -670,13 +670,13 @@
* the specified action. If the context is
* {@code null}, then no additional restriction is applied.
*
* @return the value returned by the action's {@code run} method
*
- * @exception PrivilegedActionException if the specified action's
+ * @throws PrivilegedActionException if the specified action's
* {@code run} method threw a <i>checked</i> exception
- * @exception NullPointerException if the action is {@code null}
+ * @throws NullPointerException if the action is {@code null}
*
* @see #doPrivileged(PrivilegedAction)
* @see #doPrivileged(PrivilegedAction,AccessControlContext)
*/
@CallerSensitive
@@ -988,13 +988,13 @@
* getPermission method of the AccessControlException returns the
* {@code perm} Permission object instance.
*
* @param perm the requested permission.
*
- * @exception AccessControlException if the specified permission
+ * @throws AccessControlException if the specified permission
* is not permitted, based on the current security policy.
- * @exception NullPointerException if the specified permission
+ * @throws NullPointerException if the specified permission
* is {@code null} and is checked based on the
* security policy currently in effect.
*/
public static void checkPermission(Permission perm)
< prev index next >