summaryrefslogtreecommitdiffstats
path: root/libjava/java/security/AccessController.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 07:16:48 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 07:16:48 +0000
commit5260943b9f5044e1207b2c22f895c0d0fd106858 (patch)
treedce94437c97686576b1d08ca140be54f3352aab1 /libjava/java/security/AccessController.java
parentaa6675156c2e6175abea3611ba5cda7398d61bc6 (diff)
downloadppe42-gcc-5260943b9f5044e1207b2c22f895c0d0fd106858.tar.gz
ppe42-gcc-5260943b9f5044e1207b2c22f895c0d0fd106858.zip
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/security/AccessControlContext.java: Reformated. (protectedDomains): Renamed from 'protectionDomain'. * java/security/AccessController.java: Reformatted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/security/AccessController.java')
-rw-r--r--libjava/java/security/AccessController.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/libjava/java/security/AccessController.java b/libjava/java/security/AccessController.java
index 66aed9e3898..a268e18815a 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);
}
}
OpenPOWER on IntegriCloud