[java-shib-shared] branch main updated: Account for exceptional cases with null map value.
Scott Cantor
cantor.2 at osu.edu
Mon Jan 23 17:07:25 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-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=91384be6cbea0ef012dfe9827c612bff3960d694
The following commit(s) were added to refs/heads/main by this push:
new 91384be6 Account for exceptional cases with null map value.
91384be6 is described below
commit 91384be6cbea0ef012dfe9827c612bff3960d694
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jan 23 12:07:22 2023 -0500
Account for exceptional cases with null map value.
---
.../main/java/net/shibboleth/shared/collection/CollectionSupport.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/collection/CollectionSupport.java b/shib-support/src/main/java/net/shibboleth/shared/collection/CollectionSupport.java
index 3741aafd..1c25886e 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/collection/CollectionSupport.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/collection/CollectionSupport.java
@@ -26,6 +26,7 @@ import java.util.function.BinaryOperator;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
import org.slf4j.Logger;
@@ -173,7 +174,7 @@ public final class CollectionSupport {
*/
@SuppressWarnings("null")
@Nonnull @NonnullElements @Unmodifiable @NotLive public static <T,U> Map<T,U> singletonMap(@Nonnull final T key,
- @Nonnull final U value) {
+ @Nullable final U value) {
return Collections.singletonMap(key, value);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list