[java-metadata-aggregator] 01/02: Null safety annotations

Ian Young ian at iay.org.uk
Fri Oct 21 16:54:44 UTC 2022


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

iay pushed a commit to branch main
in repository java-metadata-aggregator.

View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=1a797a7949fe4cee8d5d066a3065909b534f778c

commit 1a797a7949fe4cee8d5d066a3065909b534f778c
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Oct 21 11:55:08 2022 +0100

    Null safety annotations
---
 .../java/net/shibboleth/metadata/validate/BaseValidatorTest.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mda-framework/src/test/java/net/shibboleth/metadata/validate/BaseValidatorTest.java b/mda-framework/src/test/java/net/shibboleth/metadata/validate/BaseValidatorTest.java
index 9c7848e..9fbcb4a 100644
--- a/mda-framework/src/test/java/net/shibboleth/metadata/validate/BaseValidatorTest.java
+++ b/mda-framework/src/test/java/net/shibboleth/metadata/validate/BaseValidatorTest.java
@@ -3,6 +3,8 @@ package net.shibboleth.metadata.validate;
 
 import java.util.List;
 
+import javax.annotation.Nonnull;
+
 import org.testng.Assert;
 import org.testng.annotations.Test;
 
@@ -18,7 +20,8 @@ public class BaseValidatorTest {
      */
     private class BoomValidator extends BaseValidator implements Validator<String> {
 
-        public Action validate(String e, Item<?> item, String stageId) {
+        public @Nonnull Action validate(final @Nonnull String e, final @Nonnull Item<?> item,
+                final @Nonnull String stageId) {
             addErrorMessage(e, item, stageId);
             return Action.DONE;
         }

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


More information about the commits mailing list