[java-support] branch master updated: Add annotation to make invariant (values are not null) clearer

Ian Young ian at iay.org.uk
Thu Jul 9 10:02:18 UTC 2020


This is an automated email from the git hooks/post-receive script.

iay 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=540bd791c89e78cff0435fb1c388ccdc5d702127

The following commit(s) were added to refs/heads/master by this push:
       new  540bd79   Add annotation to make invariant (values are not null) clearer
540bd79 is described below

commit 540bd791c89e78cff0435fb1c388ccdc5d702127
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Jul 9 11:02:14 2020 +0100

    Add annotation to make invariant (values are not null) clearer
---
 .../utilities/java/support/collection/ClassToInstanceMultiMap.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/collection/ClassToInstanceMultiMap.java b/src/main/java/net/shibboleth/utilities/java/support/collection/ClassToInstanceMultiMap.java
index eaed26e..54cdf78 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/collection/ClassToInstanceMultiMap.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/collection/ClassToInstanceMultiMap.java
@@ -53,7 +53,7 @@ public class ClassToInstanceMultiMap<B> {
     @Nonnull private final HashMap<Class<?>, List<B>> backingMap;
 
     /** List of values that are indexed. */
-    @Nonnull private final List<B> values;
+    @Nonnull @NonnullElements private final List<B> values;
 
     /** Constructor. Does not index supertypes. */
     public ClassToInstanceMultiMap() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list