src/share/classes/java/lang/reflect/AccessibleObject.java

Print this page

        

*** 180,197 **** throw new AssertionError("All subclasses should override this method"); } /** * @throws NullPointerException {@inheritDoc} - * @since 1.5 - */ - public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { - return getAnnotation(annotationClass) != null; - } - - /** - * @throws NullPointerException {@inheritDoc} * @since 1.8 */ public <T extends Annotation> T[] getAnnotations(Class<T> annotationClass) { throw new AssertionError("All subclasses should override this method"); } --- 180,189 ----