[java-metadata-aggregator] branch master updated: Improve annotations

Ian Young ian at iay.org.uk
Mon Apr 20 10:02:05 EDT 2020


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

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  55a1c71   Improve annotations
55a1c71 is described below

commit 55a1c712b10d7f609fdea792b0af91dc78e8228f
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Mon Apr 20 15:01:58 2020 +0100

    Improve annotations
---
 .../java/net/shibboleth/metadata/pipeline/SerializationStage.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/aggregator-pipeline/src/main/java/net/shibboleth/metadata/pipeline/SerializationStage.java b/aggregator-pipeline/src/main/java/net/shibboleth/metadata/pipeline/SerializationStage.java
index 68f15db..8cb133b 100644
--- a/aggregator-pipeline/src/main/java/net/shibboleth/metadata/pipeline/SerializationStage.java
+++ b/aggregator-pipeline/src/main/java/net/shibboleth/metadata/pipeline/SerializationStage.java
@@ -29,6 +29,7 @@ import javax.annotation.concurrent.ThreadSafe;
 
 import net.shibboleth.metadata.Item;
 import net.shibboleth.metadata.ItemCollectionSerializer;
+import net.shibboleth.utilities.java.support.annotation.constraint.NonnullAfterInit;
 import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 import net.shibboleth.utilities.java.support.component.ComponentSupport;
@@ -57,6 +58,7 @@ public class SerializationStage<T> extends AbstractStage<T> {
     private final Logger log = LoggerFactory.getLogger(SerializationStage.class);
 
     /** File to which the item will be written. */
+    @NonnullAfterInit
     private File outputFile;
 
     /** Whether an existing output file should be overwritten. Default value: <code>true</code> */
@@ -70,7 +72,7 @@ public class SerializationStage<T> extends AbstractStage<T> {
      * 
      * @return file to which the item will be written
      */
-    @Nullable public File getOutputFile() {
+    @NonnullAfterInit public File getOutputFile() {
         return outputFile;
     }
 

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


More information about the commits mailing list