aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/openal
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-14 21:29:49 +0100
committerSven Gothel <[email protected]>2023-01-14 21:29:49 +0100
commit7e6319105d606706cc3154af2213125b72e85066 (patch)
treeae5bf623b5f8f4badfa13de46184467b0603d1e1 /src/java/jogamp/openal
parent0a2b0c47eee4c6384301ca268744fbefdc9afa92 (diff)
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/java/jogamp/openal')
-rw-r--r--src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java4
-rw-r--r--src/java/jogamp/openal/Debug.java5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java
index 310ed7a..233f8b1 100644
--- a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java
+++ b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java
@@ -34,16 +34,16 @@ import com.jogamp.common.os.DynamicLibraryBundleInfo;
import com.jogamp.common.os.Platform;
import com.jogamp.common.util.RunnableExecutor;
import com.jogamp.common.util.cache.TempJarCache;
+import com.jogamp.common.util.SecurityUtil;
import com.jogamp.openal.ALFactory;
-import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.*;
public final class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo {
private static final List<String> glueLibNames;
static {
- AccessController.doPrivileged(new PrivilegedAction<Object>() {
+ SecurityUtil.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
Platform.initSingleton();
diff --git a/src/java/jogamp/openal/Debug.java b/src/java/jogamp/openal/Debug.java
index 94c5c32..b1985f0 100644
--- a/src/java/jogamp/openal/Debug.java
+++ b/src/java/jogamp/openal/Debug.java
@@ -28,11 +28,10 @@
package jogamp.openal;
-import java.security.AccessController;
import java.security.PrivilegedAction;
import com.jogamp.common.util.PropertyAccess;
-
+import com.jogamp.common.util.SecurityUtil;
/** Helper routines for logging and debugging. */
@@ -42,7 +41,7 @@ public class Debug extends PropertyAccess {
private static boolean debugAll;
static {
- AccessController.doPrivileged(new PrivilegedAction<Object>() {
+ SecurityUtil.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
PropertyAccess.addTrustedPrefix("joal.");
return null;