[java-support] branch master updated: Use emptyList for a null case.
Scott Cantor
cantor.2 at osu.edu
Fri Nov 1 12:40:32 EDT 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=7ff945cdabba4cf8e21f72fe4f2f98faaee6864e
The following commit(s) were added to refs/heads/master by this push:
new 7ff945c Use emptyList for a null case.
7ff945c is described below
commit 7ff945cdabba4cf8e21f72fe4f2f98faaee6864e
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Nov 1 12:40:30 2019 -0400
Use emptyList for a null case.
---
.../net/shibboleth/utilities/java/support/primitive/StringSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/primitive/StringSupport.java b/src/main/java/net/shibboleth/utilities/java/support/primitive/StringSupport.java
index dad7eaf..dbc4acb 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/primitive/StringSupport.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/primitive/StringSupport.java
@@ -173,7 +173,7 @@ public final class StringSupport {
@Nonnull @NonnullElements public static Collection<String> normalizeStringCollection(
@Nullable @NullableElements final Collection<String> values) {
if (values == null) {
- return Collections.emptySet();
+ return Collections.emptyList();
}
return values.stream().map(StringSupport::trimOrNull).filter(e->e != null).collect(Collectors.toList());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list