[java-shib-shared] 01/02: Deprecate class we forgot to remove.
Scott Cantor
cantor.2 at osu.edu
Thu Dec 14 14:13:41 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=625bd76e9fdb40c165403b8a8cbc159185acfcde
commit 625bd76e9fdb40c165403b8a8cbc159185acfcde
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Dec 14 09:12:15 2023 -0500
Deprecate class we forgot to remove.
---
.../net/shibboleth/shared/collection/ReflectionSafeIterator.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/collection/ReflectionSafeIterator.java b/shib-support/src/main/java/net/shibboleth/shared/collection/ReflectionSafeIterator.java
index a7cce519..aade7e0a 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/collection/ReflectionSafeIterator.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/collection/ReflectionSafeIterator.java
@@ -19,6 +19,8 @@ import java.util.Iterator;
import javax.annotation.Nonnull;
import net.shibboleth.shared.logic.Constraint;
+import net.shibboleth.shared.primitive.DeprecationSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport.ObjectType;
/**
* Wrapper class for delegating publically to {@link Iterator} implementations that
@@ -31,7 +33,10 @@ import net.shibboleth.shared.logic.Constraint;
* @param <T> iterator type
*
* @since 8.2.0
+ *
+ * @deprecated
*/
+ at Deprecated(forRemoval=true, since="9.0.0")
public class ReflectionSafeIterator<T> implements Iterator<T> {
/** Wrapped iterator. */
@@ -43,6 +48,7 @@ public class ReflectionSafeIterator<T> implements Iterator<T> {
* @param i iterator to wrap
*/
public ReflectionSafeIterator(@Nonnull final Iterator<T> i) {
+ DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null);
iter = Constraint.isNotNull(i, "Wrapped Iterator 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