Fix UsesNode.getAugmentations() 63/101063/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 May 2022 11:25:23 +0000 (13:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 11 May 2022 11:25:23 +0000 (13:25 +0200)
The collection we are returning is guaranteed to not contain null
elements, annotate that.

Change-Id: I8b516c4de69f06c80284b037cefa48c6fa792f4e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java

index dfae30b02cc09a2d6d4b84b069e6a991386200ea..761656bf528ded1a90e6b8e508b6d99a5b39452e 100644 (file)
@@ -31,7 +31,7 @@ public interface UsesNode extends WhenConditionAware, WithStatus, CopyableNode,
      *
      * @return Set of augment statements defined under this uses node
      */
-    @NonNull Collection<? extends AugmentationSchemaNode> getAugmentations();
+    @NonNull Collection<? extends @NonNull AugmentationSchemaNode> getAugmentations();
 
     /**
      * Some of the properties of each node in the grouping can be refined with the "refine" statement.