Merge branch '5.1.x'

This commit is contained in:
Juergen Hoeller
2019-05-13 18:05:07 +02:00
3 changed files with 12 additions and 6 deletions

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