Relates :
|
java.lang.annotation.Annotation class is always loaded when loading java.lang.Class, java.lang.reflect.Constructor, java.lang.reflect.Method, and java.lang.reflect.Field due to a static field EMPTY_ANNOTATION_ARRAY. This dependency is only needed when the getAnnotations or getDeclaredAnnotation method is called. So java.lang.annotation.Annotation can be made lazily loaded.
|