< prev index next >

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

Print this page

        

*** 31,40 **** --- 31,41 ---- 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,64 **** */ public final class Unsafe { static { ! Reflection.registerMethodsToFilter(Unsafe.class, "getUnsafe"); } private Unsafe() {} private static final Unsafe theUnsafe = new Unsafe(); --- 55,65 ---- */ public final class Unsafe { static { ! Reflection.registerMethodsToFilter(Unsafe.class, Set.of("getUnsafe")); } private Unsafe() {} private static final Unsafe theUnsafe = new Unsafe();
< prev index next >