Refactor ListEntryNodeDataWithSchema
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ListSchemaNode.java
index 319d33f3eb6624ec2705439c835589754ad034ec..e4cb9ba96beec3a6b0c99592a16ef1fbf6295b89 100644 (file)
@@ -24,9 +24,9 @@ public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, D
     /**
      * Returns the list of leaf identifiers.
      *
-     * @return List of QNames of leaf identifiers of this list
+     * @return List of QNames of leaf identifiers of this list, empty if the list has no keys.
      */
-    List<QName> getKeyDefinition();
+    @NonNull List<QName> getKeyDefinition();
 
     /**
      * YANG 'ordered-by' statement. It defines whether the order of entries within a list are determined by the user