From 385eb796f8da4db435a7c30a359d3326cafa17cb Mon Sep 17 00:00:00 2001 From: Rahul Kumar <78310039+eklaDFF@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:08:37 +0530 Subject: [PATCH] remove some deprecated methods (#487) --- .../java/security/AccessController.java | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/classes/modules/java.base/java/security/AccessController.java b/src/classes/modules/java.base/java/security/AccessController.java index 2f9a2c92..d01240d1 100644 --- a/src/classes/modules/java.base/java/security/AccessController.java +++ b/src/classes/modules/java.base/java/security/AccessController.java @@ -22,32 +22,11 @@ * MJI model class for java.security.AccessController library abstraction */ public class AccessController { - public static void checkPermission (Permission p) throws AccessControlException { - } - - public static T doPrivileged (PrivilegedAction action, - AccessControlContext context) { - return action.run(); - } public static T doPrivileged (PrivilegedAction action) { return action.run(); } - public static T doPrivileged (PrivilegedExceptionAction action, - AccessControlContext context) - throws PrivilegedActionException { - - try { - return action.run(); - - } catch (RuntimeException rx){ - throw rx; // we have to let unchecked exceptions pass - } catch (Exception x) { - throw new PrivilegedActionException(x); - } - } - public static T doPrivileged (PrivilegedExceptionAction action) throws PrivilegedActionException { @@ -60,19 +39,6 @@ public static T doPrivileged (PrivilegedExceptionAction action) throw new PrivilegedActionException(x); } } - - public static AccessControlContext getContext() { - return null; - } - - @SuppressWarnings("unused") - private static AccessControlContext getStackAccessControlContext() { - return null; - } - - static AccessControlContext getInheritedAccessControlContext() { - return null; - } }