Add missing Nullable annotation to assertNotNull

See gh-22932
This commit is contained in:
Juergen Hoeller
2019-05-13 18:03:01 +02:00
parent daee6f5bd9
commit 5910d2d4dc

View File

@@ -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);
}