Remove @Nullable annotation 88/88488/6
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Mar 2020 13:07:21 +0000 (14:07 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Mar 2020 20:34:20 +0000 (21:34 +0100)
ModelStatement.argument()'s return is causing quite a bit of grief
with static analysis. Remove the annotation, as its currently unused
anyway. In future we will make sure concretizations end up
constraining <A> to @NonNull type.

JIRA: YANGTOOLS-908
Change-Id: Id1771de902866b5925d9b7e9ea0177ac676d14c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/ModelStatement.java

index 74b473c06322d1602a4c9ba31aff96fea7dfec78..0adbc6aba5976f8dd73ad7a3e5f31328bbfbf4d2 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.yangtools.yang.model.api.meta;
 
 import org.eclipse.jdt.annotation.NonNull;
-import org.eclipse.jdt.annotation.Nullable;
 
 /**
  * Model statement. There are two base types of model statements:
@@ -41,8 +40,7 @@ public interface ModelStatement<A> {
      *
      * @return statement argument or null if statement does not have argument.
      */
-    // FIXME: figure out @NonNull argument override in subclasses and switch to JDT @Nullable
-    @Nullable A argument();
+    A argument();
 
     /**
      * Returns statement source, which denotes if statement was