< prev index next >

src/jdk.unsupported/share/classes/sun/misc/Unsafe.java

Print this page

        

@@ -31,10 +31,11 @@
 import jdk.internal.reflect.CallerSensitive;
 import jdk.internal.reflect.Reflection;
 import sun.nio.ch.DirectBuffer;
 
 import java.lang.reflect.Field;
+import java.util.Set;
 
 
 /**
  * A collection of methods for performing low-level, unsafe operations.
  * Although the class and all methods are public, use of this class is

@@ -54,11 +55,11 @@
  */
 
 public final class Unsafe {
 
     static {
-        Reflection.registerMethodsToFilter(Unsafe.class, "getUnsafe");
+        Reflection.registerMethodsToFilter(Unsafe.class, Set.of("getUnsafe"));
     }
 
     private Unsafe() {}
 
     private static final Unsafe theUnsafe = new Unsafe();
< prev index next >