[java-opensaml] branch master updated: Streamline collection copy.
Scott Cantor
cantor.2 at osu.edu
Mon Oct 21 09:25:09 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=f8c94e8c0d04e7e0e5613bc3a92cb0443420d301
The following commit(s) were added to refs/heads/master by this push:
new f8c94e8 Streamline collection copy.
f8c94e8 is described below
commit f8c94e8c0d04e7e0e5613bc3a92cb0443420d301
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Oct 21 09:25:04 2019 -0400
Streamline collection copy.
---
.../opensaml/saml/metadata/resolver/filter/MetadataFilterChain.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/metadata/resolver/filter/MetadataFilterChain.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/metadata/resolver/filter/MetadataFilterChain.java
index 13235f5..6baf68a 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/metadata/resolver/filter/MetadataFilterChain.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/metadata/resolver/filter/MetadataFilterChain.java
@@ -17,7 +17,6 @@
package org.opensaml.saml.metadata.resolver.filter;
-import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -32,9 +31,6 @@ import org.opensaml.core.xml.XMLObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.google.common.base.Predicates;
-import com.google.common.collect.Collections2;
-
/**
* A filter that allows the composition of {@link MetadataFilter}s. Filters will be executed on the given metadata
* document in the order they were added to the chain.
@@ -98,7 +94,7 @@ public class MetadataFilterChain implements MetadataFilter {
public void setFilters(@Nonnull @NonnullElements final List<MetadataFilter> newFilters) {
Constraint.isNotNull(newFilters, "Filter collection cannot be null");
- filters = new ArrayList<>(Collections2.filter(newFilters, Predicates.notNull()));
+ filters = List.copyOf(newFilters);
}
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list