From 97b8365cafc3a344a22d3980b8ed885f5c6d8357 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 9 Jan 2007 19:58:05 +0000 Subject: Merged gcj-eclipse branch to trunk. From-SVN: r120621 --- libjava/classpath/java/security/AccessController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libjava/classpath/java/security/AccessController.java') diff --git a/libjava/classpath/java/security/AccessController.java b/libjava/classpath/java/security/AccessController.java index 93e34b87c22..6f8b3ecbd41 100644 --- a/libjava/classpath/java/security/AccessController.java +++ b/libjava/classpath/java/security/AccessController.java @@ -88,7 +88,7 @@ public final class AccessController * should be be called. * @return the result of the action.run() method. */ - public static Object doPrivileged(PrivilegedAction action) + public static T doPrivileged(PrivilegedAction action) { VMAccessController.pushContext(null); try @@ -115,8 +115,8 @@ public final class AccessController * domains should be added to the protection domain of the calling class. * @return the result of the action.run() method. */ - public static Object doPrivileged(PrivilegedAction action, - AccessControlContext context) + public static T doPrivileged(PrivilegedAction action, + AccessControlContext context) { VMAccessController.pushContext(context); try @@ -145,7 +145,7 @@ public final class AccessController * @exception PrivilegedActionException wrapped around any checked exception * that is thrown in the run() method. */ - public static Object doPrivileged(PrivilegedExceptionAction action) + public static T doPrivileged(PrivilegedExceptionAction action) throws PrivilegedActionException { VMAccessController.pushContext(null); @@ -185,8 +185,8 @@ public final class AccessController * @exception PrivilegedActionException wrapped around any checked exception * that is thrown in the run() method. */ - public static Object doPrivileged(PrivilegedExceptionAction action, - AccessControlContext context) + public static T doPrivileged(PrivilegedExceptionAction action, + AccessControlContext context) throws PrivilegedActionException { VMAccessController.pushContext(context); -- cgit v1.2.3