Skip to content

Commit

Permalink
Remove getAnnotationInfoDirectOnly() (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Oct 11, 2021
1 parent 27b7c4e commit ec510dc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/io/github/classgraph/ClassInfo.java
Expand Up @@ -1945,20 +1945,6 @@ public AnnotationInfoList getAnnotationInfo() {
return AnnotationInfoList.getIndirectAnnotations(annotationInfo, this);
}

/**
* Get a list of the direct annotations on this class (i.e. not including meta-annotations or inherited
* annotations), or the empty list if none.
*
* @return A list of {@link AnnotationInfo} objects for the direct annotations on this class, or the empty list
* if none.
*/
public AnnotationInfoList getAnnotationInfoDirectOnly() {
if (!scanResult.scanSpec.enableAnnotationInfo) {
throw new IllegalArgumentException("Please call ClassGraph#enableAnnotationInfo() before #scan()");
}
return annotationInfo == null ? AnnotationInfoList.EMPTY_LIST : annotationInfo;
}

/**
* Get a the non-{@link Repeatable} annotation on this class, or null if the class does not have the annotation.
* (Use {@link #getAnnotationInfoRepeatable(String)} for {@link Repeatable} annotations.)
Expand Down

0 comments on commit ec510dc

Please sign in to comment.