[java-opensaml] branch main updated: Replace live set with immutable copy.
Scott Cantor
cantor.2 at osu.edu
Wed Jun 16 18:55:56 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=c433791f052ae35182c38e88ea55f6676ca48dc3
The following commit(s) were added to refs/heads/main by this push:
new c433791f0 Replace live set with immutable copy.
c433791f0 is described below
commit c433791f052ae35182c38e88ea55f6676ca48dc3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jun 16 14:55:52 2021 -0400
Replace live set with immutable copy.
---
.../main/java/org/opensaml/saml/saml2/profile/impl/EncryptNameIDs.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/profile/impl/EncryptNameIDs.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/profile/impl/EncryptNameIDs.java
index 2efb964f1..64b2eda5f 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/profile/impl/EncryptNameIDs.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/profile/impl/EncryptNameIDs.java
@@ -19,7 +19,6 @@ package org.opensaml.saml.saml2.profile.impl;
import java.util.Collection;
import java.util.Collections;
-import java.util.HashSet;
import java.util.Set;
import java.util.function.Function;
@@ -113,7 +112,7 @@ public class EncryptNameIDs extends AbstractEncryptAction {
* @param formats formats to exclude
*/
public void setExcludedFormats(@Nonnull @NonnullElements final Collection<String> formats) {
- excludedFormats = new HashSet<>(StringSupport.normalizeStringCollection(formats));
+ excludedFormats = Set.copyOf(StringSupport.normalizeStringCollection(formats));
}
/** {@inheritDoc} */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list