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/com/jogamp/common/net | |
parent | 8edb09f4851a713b0e9817b4d2f081e0de86eaf3 (diff) |
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/java/com/jogamp/common/net')
-rw-r--r-- | src/java/com/jogamp/common/net/GenericURLStreamHandlerFactory.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/net/GenericURLStreamHandlerFactory.java b/src/java/com/jogamp/common/net/GenericURLStreamHandlerFactory.java index 185142f..9b39657 100644 --- a/src/java/com/jogamp/common/net/GenericURLStreamHandlerFactory.java +++ b/src/java/com/jogamp/common/net/GenericURLStreamHandlerFactory.java @@ -3,11 +3,12 @@ package com.jogamp.common.net; import java.net.URL; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; -import java.security.AccessController; import java.security.PrivilegedAction; import java.util.HashMap; import java.util.Map; +import com.jogamp.common.util.SecurityUtil; + public class GenericURLStreamHandlerFactory implements URLStreamHandlerFactory { private static GenericURLStreamHandlerFactory factory = null; @@ -48,7 +49,7 @@ public class GenericURLStreamHandlerFactory implements URLStreamHandlerFactory { */ public synchronized static GenericURLStreamHandlerFactory register() { if(null == factory) { - factory = AccessController.doPrivileged(new PrivilegedAction<GenericURLStreamHandlerFactory>() { + factory = SecurityUtil.doPrivileged(new PrivilegedAction<GenericURLStreamHandlerFactory>() { @Override public GenericURLStreamHandlerFactory run() { boolean ok = false; |