[java-oidc-common] branch main updated: Removed invalid Constraint.isNotNull().

Henri Mikkonen henri.mikkonen at iki.fi
Fri Apr 5 13:48:22 UTC 2024


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

hjmikkon pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=88353690642570b204e88c3ac0035ae814695980

The following commit(s) were added to refs/heads/main by this push:
     new 8835369  Removed invalid Constraint.isNotNull().
8835369 is described below

commit 88353690642570b204e88c3ac0035ae814695980
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Apr 5 16:48:02 2024 +0300

    Removed invalid Constraint.isNotNull().
    
    That was added there before fixing the method from @Nonnull into @Nullable in
    c14c8eb792f6a6ee83a7a48c104833a22797d693
---
 .../oidc/profile/config/impl/DefaultOIDCLogoutConfiguration.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/config/impl/DefaultOIDCLogoutConfiguration.java b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/config/impl/DefaultOIDCLogoutConfiguration.java
index 6b415cd..f6d88ab 100644
--- a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/config/impl/DefaultOIDCLogoutConfiguration.java
+++ b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/config/impl/DefaultOIDCLogoutConfiguration.java
@@ -229,11 +229,10 @@ public class DefaultOIDCLogoutConfiguration extends AbstractInterceptorAwareProf
                 Constraint.isNotNull(condition, "Require id_token_hint predicate cannot be null");
     }
 
-    @Override
+    @Override @Nullable
     public BiPredicate<String,SPSession> getLogoutHintMatchingStrategy(
             @Nullable final ProfileRequestContext profileRequestContext) {
-        return Constraint.isNotNull(logoutHintMatchingStrategyLookupStrategy.apply(profileRequestContext),
-                "Logout hint matching strategy cannot be null");
+        return logoutHintMatchingStrategyLookupStrategy.apply(profileRequestContext);
     }
 
     /**

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


More information about the commits mailing list