classlib: add TAccessController(TPrivilegedExceptionAction<T>) T

This commit is contained in:
Ulugbek 2022-07-21 14:33:36 +02:00 committed by Alexey Andreev
parent 584adb457f
commit 8a70c5ded0

View File

@ -22,4 +22,8 @@ public final class TAccessController {
public static <T> T doPrivileged(TPrivilegedAction<T> action) { public static <T> T doPrivileged(TPrivilegedAction<T> action) {
return action.run(); return action.run();
} }
public static <T> T doPrivileged(TPrivilegedExceptionAction<T> action) {
return action.run();
}
} }