import com.google.common.annotations.VisibleForTesting;
import java.util.Objects;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationEffectiveStatement;
import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationStatement;
import org.opendaylight.yangtools.yang.common.QName;
extends UnknownEffectiveStatementBase<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement>
implements AnyxmlSchemaLocationEffectiveStatement {
- private final SchemaPath path;
+ private final @NonNull SchemaPath path;
AnyxmlSchemaLocationEffectiveStatementImpl(
final StmtContext<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement, ?> ctx) {
super(ctx);
- path = ctx.getParentContext().getSchemaPath().get().createChild(getNodeType());
+ path = ctx.coerceParentContext().getSchemaPath().get().createChild(getNodeType());
}
- @Nonnull
@Override
- public QName getQName() {
+ public @NonNull QName getQName() {
return getNodeType();
}
- @Nonnull
@Override
- public SchemaPath getPath() {
+ public @NonNull SchemaPath getPath() {
return path;
}