import java.util.List;
import java.util.Objects;
import java.util.Set;
-import javax.annotation.Nonnull;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
final class NotificationEffectiveStatementImpl
extends AbstractEffectiveDocumentedDataNodeContainer<QName, NotificationStatement>
implements NotificationDefinition, NotificationEffectiveStatement {
- private final QName qname;
- private final SchemaPath path;
+ private final @NonNull QName qname;
+ private final @NonNull SchemaPath path;
private final Set<AugmentationSchemaNode> augmentations;
private final @NonNull List<UnknownSchemaNode> unknownNodes;
private final boolean augmenting;
NotificationEffectiveStatementImpl(
final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
super(ctx);
- this.qname = ctx.getStatementArgument();
+ this.qname = ctx.coerceStatementArgument();
this.path = ctx.getSchemaPath().get();
// initSubstatementCollections
}
}
- @Nonnull
@Override
public QName getQName() {
return qname;
}
- @Nonnull
@Override
public SchemaPath getPath() {
return path;