/** * Given an annotation, return true if it should be documented and false otherwise. * * @param annotationDoc the annotation to check. * @return true return true if it should be documented and false otherwise. */ public static boolean isDocumentedAnnotation(AnnotationTypeDoc annotationDoc) { AnnotationDesc[] annotationDescList = annotationDoc.annotations(); for (int i = 0; i < annotationDescList.length; i++) { if (annotationDescList[i] .annotationType() .qualifiedName() .equals(java.lang.annotation.Documented.class.getName())) { return true; } } return false; }