[spring-extensions] branch master updated: Relax constructor argument constraint.

Scott Cantor cantor.2 at osu.edu
Mon Dec 23 11:39:39 EST 2019


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=921ce7d2ed11a818a1f59ffa85626bc1891d1595

The following commit(s) were added to refs/heads/master by this push:
       new  921ce7d   Relax constructor argument constraint.
921ce7d is described below

commit 921ce7d2ed11a818a1f59ffa85626bc1891d1595
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Dec 23 11:39:34 2019 -0500

    Relax constructor argument constraint.
---
 .../ext/spring/error/ExtendedMappingExceptionResolver.java           | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/net/shibboleth/ext/spring/error/ExtendedMappingExceptionResolver.java b/src/main/java/net/shibboleth/ext/spring/error/ExtendedMappingExceptionResolver.java
index 439a76e..51843cf 100644
--- a/src/main/java/net/shibboleth/ext/spring/error/ExtendedMappingExceptionResolver.java
+++ b/src/main/java/net/shibboleth/ext/spring/error/ExtendedMappingExceptionResolver.java
@@ -25,7 +25,6 @@ import javax.annotation.Nullable;
 import javax.servlet.http.HttpServletRequest;
 
 import net.shibboleth.utilities.java.support.codec.HTMLEncoder;
-import net.shibboleth.utilities.java.support.logic.Constraint;
 
 import org.slf4j.LoggerFactory;
 import org.springframework.web.context.WebApplicationContext;
@@ -64,8 +63,8 @@ public class ExtendedMappingExceptionResolver extends SimpleMappingExceptionReso
      *
      * @param extender function to obtain extensions to view model
      */
-    public ExtendedMappingExceptionResolver(@Nonnull final Function<HttpServletRequest,Map<String,Object>> extender) {
-        viewModelExtenderFunction = Constraint.isNotNull(extender, "Extender function cannot be null");
+    public ExtendedMappingExceptionResolver(@Nullable final Function<HttpServletRequest,Map<String,Object>> extender) {
+        viewModelExtenderFunction = extender;
     }
     
     /** {@inheritDoc} */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list