diff --git a/gdx/src/main/java/de/damios/guacamole/gdx/reflection/ReflectionUtils.java b/gdx/src/main/java/de/damios/guacamole/gdx/reflection/ReflectionUtils.java index fdc634d..2347509 100644 --- a/gdx/src/main/java/de/damios/guacamole/gdx/reflection/ReflectionUtils.java +++ b/gdx/src/main/java/de/damios/guacamole/gdx/reflection/ReflectionUtils.java @@ -173,9 +173,7 @@ public static Set> 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 getAnnotationObject( + public static @Nullable A getAnnotationObject( Field field, Class clazz) { Annotation annotation = field.getDeclaredAnnotation(clazz); if (annotation == null)