src/java.base/share/classes/sun/reflect/annotation/AnnotationSupport.java

Print this page

        

*** 33,48 **** import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Objects; ! import sun.misc.JavaLangAccess; ! import sun.reflect.LangReflectAccess; import sun.reflect.ReflectionFactory; public final class AnnotationSupport { ! private static final JavaLangAccess LANG_ACCESS = sun.misc.SharedSecrets.getJavaLangAccess(); /** * Finds and returns all annotations in {@code annotations} matching * the given {@code annoClass}. * --- 33,48 ---- import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Objects; ! import jdk.internal.misc.SharedSecrets; ! import jdk.internal.misc.JavaLangAccess; import sun.reflect.ReflectionFactory; public final class AnnotationSupport { ! private static final JavaLangAccess LANG_ACCESS = SharedSecrets.getJavaLangAccess(); /** * Finds and returns all annotations in {@code annotations} matching * the given {@code annoClass}. *