From 5910d2d4dcdebe248eea8bccb61f150c8f9e9c37 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 13 May 2019 18:03:01 +0200 Subject: [PATCH] Add missing Nullable annotation to assertNotNull See gh-22932 --- .../java/org/springframework/test/util/AssertionErrors.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/util/AssertionErrors.java b/spring-test/src/main/java/org/springframework/test/util/AssertionErrors.java index aea7f8e4cf..1865847673 100644 --- a/spring-test/src/main/java/org/springframework/test/util/AssertionErrors.java +++ b/spring-test/src/main/java/org/springframework/test/util/AssertionErrors.java @@ -76,9 +76,9 @@ public abstract class AssertionErrors { * {@link AssertionError} otherwise. * @param message a message that describes the reason for the failure * @param object the object to check - * @since 5.1 + * @since 5.1.8 */ - public static void assertNotNull(String message, Object object) { + public static void assertNotNull(String message, @Nullable Object object) { assertTrue(message, object != null); }