package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.type;
import com.google.common.annotations.VisibleForTesting;
-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.TypeEffectiveStatement;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
@VisibleForTesting
-// FIXME: hide this class
+// FIXME: 5.0.0: hide this class
public final class BitsSpecificationEffectiveStatement extends
DeclaredEffectiveStatementBase<String, BitsSpecification> implements TypeEffectiveStatement<BitsSpecification> {
- private final BitsTypeDefinition typeDefinition;
+ private final @NonNull BitsTypeDefinition typeDefinition;
BitsSpecificationEffectiveStatement(
final StmtContext<String, BitsSpecification, EffectiveStatement<String, BitsSpecification>> ctx) {
effectivePos = 0L;
}
} else {
- effectivePos = bitSubStmt.getDeclaredPosition();
+ effectivePos = bitSubStmt.getDeclaredPosition().toJava();
}
final Bit bit = EffectiveTypeUtil.buildBit(bitSubStmt, effectivePos);
typeDefinition = builder.build();
}
- @Nonnull
@Override
public BitsTypeDefinition getTypeDefinition() {
return typeDefinition;