From bb07973ce5483a6eba3b30a3f54d6691a5cba592 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 26 Apr 2005 07:16:48 +0000 Subject: AccessControlContext.java: Reformated. 2005-04-26 Michael Koch * java/security/AccessControlContext.java: Reformated. (protectedDomains): Renamed from 'protectionDomain'. * java/security/AccessController.java: Reformatted. From-SVN: r98766 --- libjava/java/security/AccessController.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libjava/java/security/AccessController.java') diff --git a/libjava/java/security/AccessController.java b/libjava/java/security/AccessController.java index 66aed9e..a268e18 100644 --- a/libjava/java/security/AccessController.java +++ b/libjava/java/security/AccessController.java @@ -113,7 +113,7 @@ public final class AccessController * @return the result of the action.run() method. */ public static Object doPrivileged(PrivilegedAction action, - AccessControlContext context) + AccessControlContext context) { return action.run(); } @@ -137,14 +137,13 @@ public final class AccessController public static Object doPrivileged(PrivilegedExceptionAction action) throws PrivilegedActionException { - try { - return action.run(); + return action.run(); } catch (Exception e) { - throw new PrivilegedActionException(e); + throw new PrivilegedActionException(e); } } @@ -167,17 +166,16 @@ public final class AccessController * is thrown in the run() method. */ public static Object doPrivileged(PrivilegedExceptionAction action, - AccessControlContext context) + AccessControlContext context) throws PrivilegedActionException { - try { - return action.run(); + return action.run(); } catch (Exception e) { - throw new PrivilegedActionException(e); + throw new PrivilegedActionException(e); } } -- cgit v1.1