From e8f4ee8a390b3f52d71d487f767215e0e37a13a2 Mon Sep 17 00:00:00 2001 From: Ruben Dijkstra Date: Wed, 1 Jun 2016 11:55:35 +0200 Subject: [PATCH] Fix Assert usage --- .../AbstractAuthenticationProcessingFilter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java b/web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java index fb228fa7db..e9ee21536f 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java @@ -38,12 +38,10 @@ import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.SpringSecurityMessageSource; import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.web.WebAttributes; import org.springframework.security.web.authentication.session.NullAuthenticatedSessionStrategy; import org.springframework.security.web.authentication.session.SessionAuthenticationStrategy; import org.springframework.security.web.util.matcher.AntPathRequestMatcher; import org.springframework.security.web.util.matcher.RequestMatcher; -import org.springframework.security.web.util.UrlUtils; import org.springframework.util.Assert; import org.springframework.web.filter.GenericFilterBean; @@ -383,7 +381,7 @@ public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt } public void setRememberMeServices(RememberMeServices rememberMeServices) { - Assert.notNull("rememberMeServices cannot be null"); + Assert.notNull(rememberMeServices, "rememberMeServices cannot be null"); this.rememberMeServices = rememberMeServices; }