The result is always non-null. Annotate that fact.
Change-Id: Ia18ef5058731c30d131772535b05a59cf38637ae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
package org.opendaylight.yangtools.yang.model.api;
+import org.eclipse.jdt.annotation.NonNull;
+
/**
* Marker interface for SchemaNodes which store simple data, for which we have type information.
- *
- * @author Robert Varga
*/
public interface TypeAware {
/**
*
* @return type definition.
*/
- TypeDefinition<? extends TypeDefinition<?>> getType();
+ @NonNull TypeDefinition<? extends TypeDefinition<?>> getType();
}