[java-identity-provider] 02/02: Jakarta and component API updates.

Scott Cantor cantor.2 at osu.edu
Wed Aug 3 19:53:36 UTC 2022


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=045cab6f0383206e8aad3e28ca23a2a1f6f663f7

commit 045cab6f0383206e8aad3e28ca23a2a1f6f663f7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Aug 3 15:53:31 2022 -0400

    Jakarta and component API updates.
---
 .../idp/authn/revocation/impl/DoRevocationCacheOperation.java    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/DoRevocationCacheOperation.java b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/DoRevocationCacheOperation.java
index b9d16e121..122b8e1ef 100644
--- a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/DoRevocationCacheOperation.java
+++ b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/DoRevocationCacheOperation.java
@@ -21,16 +21,16 @@ import java.io.IOException;
 import java.time.Duration;
 import java.util.Collections;
 
+import jakarta.servlet.http.HttpServletResponse;
+
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
-import javax.servlet.http.HttpServletResponse;
 
 import net.shibboleth.idp.profile.AbstractProfileAction;
 import net.shibboleth.idp.profile.context.SpringRequestContext;
 import net.shibboleth.utilities.java.support.annotation.constraint.NonnullAfterInit;
 import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
-import net.shibboleth.utilities.java.support.component.ComponentSupport;
 import net.shibboleth.utilities.java.support.logic.Constraint;
 
 import org.opensaml.profile.action.ActionSupport;
@@ -91,7 +91,7 @@ public class DoRevocationCacheOperation extends AbstractProfileAction {
     /** Revocation key to operate on. */
     @Nullable @NotEmpty private String key;
 
-    /** {@link AccountLockoutManager} to operate on. */
+    /** {@link RevocationCache} to operate on. */
     @Nullable private RevocationCache revocationCache;
 
     /**
@@ -100,8 +100,7 @@ public class DoRevocationCacheOperation extends AbstractProfileAction {
      * @param mapper object mapper
      */
     public void setObjectMapper(@Nonnull final ObjectMapper mapper) {
-        ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
-        ComponentSupport.ifDestroyedThrowDestroyedComponentException(this);
+        checkSetterPreconditions();
         
         objectMapper = Constraint.isNotNull(mapper, "ObjectMapper cannot be null");
     }

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


More information about the commits mailing list