@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }
@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { if (annotationType == null) { throw new NullPointerException("annotationType == null"); } if (isDeclaredAnnotationPresent(annotationType)) { return true; } if (annotationType.isDeclaredAnnotationPresent(Inherited.class)) { for (Class<?> sup = getSuperclass(); sup != null; sup = sup.getSuperclass()) { if (sup.isDeclaredAnnotationPresent(annotationType)) { return true; } } } return false; }