aboutsummaryrefslogtreecommitdiffstats
path: root/java_net
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-23 19:25:30 +0200
committerSven Gothel <[email protected]>2022-04-23 19:25:30 +0200
commita262415184e72b4ce9d1ebe0606fc46877fa8ad7 (patch)
tree6cc603de67e49b60c28eda51e5a62f32b2dfbdbc /java_net
parent5e0efff48aed2044388151637d0969daf6aabd4d (diff)
Build using OpenJDK 17 (min requirement still 11), 'fix' deprecated and removal warnings
Diffstat (limited to 'java_net')
-rw-r--r--java_net/org/jau/net/GenericURLStreamHandlerFactory.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java_net/org/jau/net/GenericURLStreamHandlerFactory.java b/java_net/org/jau/net/GenericURLStreamHandlerFactory.java
index 87c5823..f9c49db 100644
--- a/java_net/org/jau/net/GenericURLStreamHandlerFactory.java
+++ b/java_net/org/jau/net/GenericURLStreamHandlerFactory.java
@@ -28,11 +28,12 @@ package org.jau.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 org.jau.lang.UnsafeUtil;
+
public class GenericURLStreamHandlerFactory implements URLStreamHandlerFactory {
private static GenericURLStreamHandlerFactory factory = null;
@@ -73,7 +74,7 @@ public class GenericURLStreamHandlerFactory implements URLStreamHandlerFactory {
*/
public synchronized static GenericURLStreamHandlerFactory register() {
if(null == factory) {
- factory = AccessController.doPrivileged(new PrivilegedAction<GenericURLStreamHandlerFactory>() {
+ factory = UnsafeUtil.doPrivileged(new PrivilegedAction<GenericURLStreamHandlerFactory>() {
@Override
public GenericURLStreamHandlerFactory run() {
boolean ok = false;