mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-01-30 10:50:16 +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