[java-opensaml] branch master updated: Remove deprecated setter.
Scott Cantor
cantor.2 at osu.edu
Thu Jul 18 11:54:07 EDT 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=d64f3af835b9716d6fb3950b809f863f85cb14ae
The following commit(s) were added to refs/heads/master by this push:
new d64f3af Remove deprecated setter.
d64f3af is described below
commit d64f3af835b9716d6fb3950b809f863f85cb14ae
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jul 18 11:54:04 2019 -0400
Remove deprecated setter.
---
.../opensaml/profile/logic/IPRangePredicate.java | 26 ----------------------
1 file changed, 26 deletions(-)
diff --git a/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/IPRangePredicate.java b/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/IPRangePredicate.java
index 2cb732b..baa72db 100644
--- a/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/IPRangePredicate.java
+++ b/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/IPRangePredicate.java
@@ -29,15 +29,12 @@ import org.opensaml.messaging.context.BaseContext;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
-import com.google.common.collect.Iterables;
import com.google.common.net.InetAddresses;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
import net.shibboleth.utilities.java.support.logic.Constraint;
import net.shibboleth.utilities.java.support.logic.Predicate;
import net.shibboleth.utilities.java.support.net.IPRange;
-import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
-import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* A {@link Predicate} that checks if a request is from a set of one or more {@link IPRange}s.
@@ -58,29 +55,6 @@ public class IPRangePredicate implements Predicate<BaseContext> {
/**
* Set the address ranges to check against.
*
- * <p>This version is deprecated because Spring doesn't handle converting strings
- * to Iterable.</p>
- *
- * @param ranges address ranges to check against
- *
- * @deprecated
- */
- @Deprecated
- public void setAddressRanges(@Nonnull @NonnullElements final Iterable<IPRange> ranges) {
- DeprecationSupport.warn(ObjectType.METHOD, getClass().getName() + ".setAddressRanges(Iterable)", null,
- "setRanges(Collection)");
-
- Constraint.isNotNull(ranges, "Address range collection cannot be null");
-
- addressRanges = new ArrayList<>();
- for (final IPRange range : Iterables.filter(ranges, Predicates.notNull())) {
- addressRanges.add(range);
- }
- }
-
- /**
- * Set the address ranges to check against.
- *
* @param ranges address ranges to check against
*
* @since 3.3.0
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list