From dd469ac2a03a2f675b40db312dd7fe219b6dd339 Mon Sep 17 00:00:00 2001 From: Cedomir Igaly Date: Thu, 22 Jun 2023 12:56:51 +0200 Subject: [PATCH] Assert is missing object. It was useless before Spring Framework 6.1, and will not compile on 6.1 --- .../security/web/savedrequest/SimpleSavedRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java b/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java index e1595ea6bdc..08165eb0cd3 100644 --- a/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java +++ b/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java @@ -126,7 +126,7 @@ public void setHeaders(Map> headers) { } public void setLocales(List locales) { - Assert.notNull("locales cannot be null"); + Assert.notNull(locales, "locales cannot be null"); this.locales = locales; }