mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
classlib: add TAccessController(TPrivilegedExceptionAction<T>) T
This commit is contained in:
parent
584adb457f
commit
8a70c5ded0
|
@ -22,4 +22,8 @@ public final class TAccessController {
|
|||
public static <T> T doPrivileged(TPrivilegedAction<T> action) {
|
||||
return action.run();
|
||||
}
|
||||
|
||||
public static <T> T doPrivileged(TPrivilegedExceptionAction<T> action) {
|
||||
return action.run();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user