Enforce non-null compositions
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / UnknownSchemaNode.java
index 192fdc4938be80abd1618136554409de5c74c2f3..2796d0bd83cd6228f3b6ec6a0059016a5142528f 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.stmt.UnknownEffectiveStatement;
 
@@ -21,7 +22,7 @@ public interface UnknownSchemaNode extends SchemaNode, CopyableNode,
      *
      * @return QName with name the name of the unknown node.
      */
-    QName getNodeType();
+    @NonNull QName getNodeType();
 
     /**
      * Returns name of the unknown node.
@@ -29,15 +30,4 @@ public interface UnknownSchemaNode extends SchemaNode, CopyableNode,
      * @return string with the name of unknown node.
      */
     String getNodeParameter();
-
-    /**
-     * Get extension definition which identifies this node.
-     *
-     * @return extension definition if exists, null otherwise
-     * @deprecated This method is can cause cyclic dependencies in the object graph. Use
-     *             {@link SchemaContext#getExtensions()} with {@link #getNodeType()} instead.
-     */
-    // FIXME: YANGTOOLS-1317: remove this method
-    @Deprecated(forRemoval = true, since = "7.0.8")
-    ExtensionDefinition getExtensionDefinition();
 }