diff options
author | Sven Gothel <[email protected]> | 2023-01-14 21:29:29 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-14 21:29:29 +0100 |
commit | 1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 (patch) | |
tree | aab2100371d332f86ffe2b86a906565fdb2576e2 /src/java/jogamp/common/os | |
parent | 8edb09f4851a713b0e9817b4d2f081e0de86eaf3 (diff) |
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/java/jogamp/common/os')
-rw-r--r-- | src/java/jogamp/common/os/PlatformPropsImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<Object>() { + SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { @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<String>() { + return SecurityUtil.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("java.runtime.name"); |