[java-shib-shared] branch main updated: JSSH-86 Consider Removing deprecation warnings on destroy methods
Codeberg
noreply at shibboleth.net
Fri Oct 30 13:11:39 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-shared/commit/c07df8b1c4fe0ccacca4469e0c7e9f74b4916c0b
The following commit(s) were added to refs/heads/main by this push:
new c07df8b1 JSSH-86 Consider Removing deprecation warnings on destroy methods
c07df8b1 is described below
commit c07df8b1c4fe0ccacca4469e0c7e9f74b4916c0b
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Oct 30 13:10:24 2026 +0000
JSSH-86 Consider Removing deprecation warnings on destroy methods
https://shibboleth.atlassian.net/browse/JSSH-86
Remove Deprecation warning in doDestroy, we have shown that
plugins will cause this to fire.
---
.../shared/component/AbstractInitializableComponent.java | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractInitializableComponent.java b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractInitializableComponent.java
index 9163e5fd..064a0fb7 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractInitializableComponent.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractInitializableComponent.java
@@ -135,20 +135,12 @@ public abstract class AbstractInitializableComponent implements DestructableComp
* Performs component specific destruction logic. This method is executed within the lock on the object being
* destroyed. The default implementation of this method is a no-op.
*
- * <p>This will be removed in V6.0. Replacement is The {@link OnTeardown} annotation.</p>
+ * <p>This will be removed in V10.0. Replacement is the {@link OnTeardown} annotation.</p>
*
* @deprecated
*/
@Deprecated(forRemoval = true, since = "9.3")
protected void doDestroy() {
-
- final String theName;
- if (this instanceof IdentifiedComponent) {
- theName = "Bean of type " + this.getClass().descriptorString() + " with id " + ((IdentifiedComponent) this).getId();
- } else {
- theName = "Anonymous Bean of type " + this.getClass().descriptorString();
- }
- DeprecationSupport.warnOnce(ObjectType.CONFIGURATION, theName, "`destroy=` or `default-destroy=` in config file", null);
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list