Skip to content

Commit

Permalink
fix: Add Nullable annotation back in.
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Mar 5, 2024
1 parent 16afa9d commit 795a07d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ public static Set<Class<?>> retrieveAllSuperTypes(Class<?> clazz) {
return Collections.unmodifiableSet(allSuperTypes);
}

// Can't mark this with @Nullable because of GWT ("Annotation types that do
// not specify explicit target element types cannot be applied here")
public static <A extends java.lang.annotation.Annotation> A getAnnotationObject(
public static <A extends java.lang.annotation.Annotation> @Nullable A getAnnotationObject(
Field field, Class<A> clazz) {
Annotation annotation = field.getDeclaredAnnotation(clazz);
if (annotation == null)
Expand Down

0 comments on commit 795a07d

Please sign in to comment.