Skip to content

Commit

Permalink
remove some deprecated methods (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
eklaDFF authored Aug 1, 2024
1 parent 8fc5193 commit 385eb79
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/classes/modules/java.base/java/security/AccessController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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> T doPrivileged (PrivilegedAction<T> action,
AccessControlContext context) {
return action.run();
}

public static <T> T doPrivileged (PrivilegedAction<T> action) {
return action.run();
}

public static <T> T doPrivileged (PrivilegedExceptionAction<T> 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> T doPrivileged (PrivilegedExceptionAction<T> action)
throws PrivilegedActionException {

Expand All @@ -60,19 +39,6 @@ public static <T> T doPrivileged (PrivilegedExceptionAction<T> action)
throw new PrivilegedActionException(x);
}
}

public static AccessControlContext getContext() {
return null;
}

@SuppressWarnings("unused")
private static AccessControlContext getStackAccessControlContext() {
return null;
}

static AccessControlContext getInheritedAccessControlContext() {
return null;
}

}

0 comments on commit 385eb79

Please sign in to comment.