you can get comments in the following ways
public <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
Objects.requireNonNull(annotationClass);
return (A) annotationData().annotations.get(annotationClass);
}
but annotation definitions generally do not write extends Annotation
. Are all annotations extends Annotation by default?