diff options
author | Sven Gothel <[email protected]> | 2023-07-09 14:50:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-07-09 14:50:30 +0200 |
commit | f0ac928d212f74a2a422af2e89ec930c7b42e224 (patch) | |
tree | 0111541d61e1a4918eb671e29d5ef44169f6d40f /make/config/joal-alcabstract-CustomJavaCode.java | |
parent | 4d82343dd856cb880b8d8ed9a6616eb1832d49dc (diff) |
Use GlueGen's SecurityUtil.doPrivileged(..) instead of AccessController, remove dead code
Diffstat (limited to 'make/config/joal-alcabstract-CustomJavaCode.java')
-rw-r--r-- | make/config/joal-alcabstract-CustomJavaCode.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/make/config/joal-alcabstract-CustomJavaCode.java b/make/config/joal-alcabstract-CustomJavaCode.java index aaa6464..b41c71f 100644 --- a/make/config/joal-alcabstract-CustomJavaCode.java +++ b/make/config/joal-alcabstract-CustomJavaCode.java @@ -1,12 +1,9 @@ private static final ALCProcAddressTable alcProcAddressTable; static { - alcProcAddressTable = AccessController.doPrivileged(new PrivilegedAction<ALCProcAddressTable>() { + alcProcAddressTable = SecurityUtil.doPrivileged(new PrivilegedAction<ALCProcAddressTable>() { public ALCProcAddressTable run() { final ALCProcAddressTable alcProcAddressTable = new ALCProcAddressTable(); - if(null==alcProcAddressTable) { - throw new RuntimeException("Couldn't instantiate ALCProcAddressTable"); - } alcProcAddressTable.reset(ALImpl.alDynamicLookupHelper); /** Not required nor forced if( !initializeImpl() ) { |