diff options
author | Michael Koch <konqueror@gmx.de> | 2005-04-26 07:16:48 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2005-04-26 07:16:48 +0000 |
commit | bb07973ce5483a6eba3b30a3f54d6691a5cba592 (patch) | |
tree | dce94437c97686576b1d08ca140be54f3352aab1 /libjava/java/security/AccessController.java | |
parent | 6f3a3283f29f4c0286f485f3f21fd424884c527e (diff) | |
download | gcc-bb07973ce5483a6eba3b30a3f54d6691a5cba592.zip gcc-bb07973ce5483a6eba3b30a3f54d6691a5cba592.tar.gz gcc-bb07973ce5483a6eba3b30a3f54d6691a5cba592.tar.bz2 |
AccessControlContext.java: Reformated.
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/security/AccessControlContext.java:
Reformated.
(protectedDomains): Renamed from 'protectionDomain'.
* java/security/AccessController.java:
Reformatted.
From-SVN: r98766
Diffstat (limited to 'libjava/java/security/AccessController.java')
-rw-r--r-- | libjava/java/security/AccessController.java | 14 |
1 files changed, 6 insertions, 8 deletions
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 <code>action.run()</code> 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 <code>run()</code> 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); } } |