Migrate TypeDefinitionAware to JDT types
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / type / LeafrefTypeEffectiveStatementImpl.java
index 44b015b1a37fb2b495d8d19df131c3b1ed520f60..f5c9a67f7272518dd56bd0b2b81a1bab9c70573b 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.type;
 
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.RequireInstanceEffectiveStatement;
@@ -22,7 +22,7 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 final class LeafrefTypeEffectiveStatementImpl extends DeclaredEffectiveStatementBase<String, TypeStatement>
         implements TypeEffectiveStatement<TypeStatement> {
 
-    private final LeafrefTypeDefinition typeDefinition;
+    private final @NonNull LeafrefTypeDefinition typeDefinition;
 
     LeafrefTypeEffectiveStatementImpl(
             final StmtContext<String, TypeStatement, EffectiveStatement<String, TypeStatement>> ctx,
@@ -43,7 +43,6 @@ final class LeafrefTypeEffectiveStatementImpl extends DeclaredEffectiveStatement
         typeDefinition = builder.build();
     }
 
-    @Nonnull
     @Override
     public LeafrefTypeDefinition getTypeDefinition() {
         return typeDefinition;