From 1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 14 Jan 2023 21:29:29 +0100 Subject: Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged() --- src/java/jogamp/common/os/PlatformPropsImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/java/jogamp/common/os') diff --git a/src/java/jogamp/common/os/PlatformPropsImpl.java b/src/java/jogamp/common/os/PlatformPropsImpl.java index aff3d68..b6cea66 100644 --- a/src/java/jogamp/common/os/PlatformPropsImpl.java +++ b/src/java/jogamp/common/os/PlatformPropsImpl.java @@ -6,7 +6,6 @@ import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.nio.ShortBuffer; -import java.security.AccessController; import java.security.PrivilegedAction; import java.util.List; @@ -23,6 +22,7 @@ import com.jogamp.common.os.Platform.ABIType; import com.jogamp.common.os.Platform.CPUFamily; import com.jogamp.common.os.Platform.CPUType; import com.jogamp.common.os.Platform.OSType; +import com.jogamp.common.util.SecurityUtil; import com.jogamp.common.util.VersionNumber; /** @@ -181,7 +181,7 @@ public abstract class PlatformPropsImpl { final ABIType[] _elfAbiType = { null }; final int[] _elfLittleEndian = { 0 }; // 1 - little, 2 - big final boolean[] _elfValid = { false }; - AccessController.doPrivileged(new PrivilegedAction() { + SecurityUtil.doPrivileged(new PrivilegedAction() { @Override public Object run() { RandomAccessFile in = null; @@ -357,7 +357,7 @@ public abstract class PlatformPropsImpl { private static final String getJavaRuntimeNameImpl() { // the fast path, check property Java SE instead of traversing through the ClassLoader - return AccessController.doPrivileged(new PrivilegedAction() { + return SecurityUtil.doPrivileged(new PrivilegedAction() { @Override public String run() { return System.getProperty("java.runtime.name"); -- cgit v1.2.3