Calling AnnotatedElementUtils.getAllAnnotationAttributes(…, "javax.annotation.Nonnull") with version 5.2.0.BUILD-SNAPSHOT for org.springframework.lang.NonNullApi.class and javax.annotation.ParametersAreNonnullByDefault.class annotation types returns null.
Previously (5.1 and earlier), the method returned MultiValueMap containing annotation attributes.