[java-shib-profile] branch main updated: Replace Collections/Arrays methods where possible.

Scott Cantor cantor.2 at osu.edu
Thu Apr 20 18:48:09 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-profile.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-profile.git;a=commit;h=c6b7efcff622877a14857acad53ef94c16f1c695

The following commit(s) were added to refs/heads/main by this push:
     new c6b7efc  Replace Collections/Arrays methods where possible.
c6b7efc is described below

commit c6b7efcff622877a14857acad53ef94c16f1c695
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 20 14:48:06 2023 -0400

    Replace Collections/Arrays methods where possible.
---
 .../profile/config/navigate/QualifiedNameIDFormatsLookupFunction.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/navigate/QualifiedNameIDFormatsLookupFunction.java b/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/navigate/QualifiedNameIDFormatsLookupFunction.java
index 48d555f..8d80b8b 100644
--- a/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/navigate/QualifiedNameIDFormatsLookupFunction.java
+++ b/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/navigate/QualifiedNameIDFormatsLookupFunction.java
@@ -18,7 +18,6 @@
 package net.shibboleth.saml.saml2.profile.config.navigate;
 
 import java.util.Collection;
-import java.util.Collections;
 
 import javax.annotation.Nullable;
 
@@ -28,6 +27,7 @@ import net.shibboleth.saml.saml2.profile.config.SingleLogoutProfileConfiguration
 import net.shibboleth.shared.annotation.constraint.NonnullElements;
 import net.shibboleth.shared.annotation.constraint.NotLive;
 import net.shibboleth.shared.annotation.constraint.Unmodifiable;
+import net.shibboleth.shared.collection.CollectionSupport;
 
 import org.opensaml.profile.context.ProfileRequestContext;
 
@@ -54,7 +54,7 @@ public class QualifiedNameIDFormatsLookupFunction extends AbstractRelyingPartyLo
             }
         }
         
-        return Collections.emptyList();
+        return CollectionSupport.emptyList();
     }
 
 }
\ 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