X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Fjersey%2Fproviders%2Ferrors%2FStreamWriterWithDisabledValidation.java;h=8bb1282edf4d9998be95f7686e54f1b893494db7;hb=32013f8d8fefcb6f5e70f6b809e7ee5291d732a6;hp=652a83cb78b7f762b72f37639744ab15eccb08dd;hpb=8365ae3952c207c6b78ff45125706f7aae90d237;p=netconf.git diff --git a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/StreamWriterWithDisabledValidation.java b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/StreamWriterWithDisabledValidation.java index 652a83cb78..8bb1282edf 100644 --- a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/StreamWriterWithDisabledValidation.java +++ b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/StreamWriterWithDisabledValidation.java @@ -8,7 +8,7 @@ package org.opendaylight.restconf.nb.rfc8040.jersey.providers.errors; import java.io.IOException; -import org.opendaylight.restconf.nb.rfc8040.handlers.SchemaContextHandler; +import org.opendaylight.restconf.nb.rfc8040.databind.DatabindContext; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev170126.Errors; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.stream.ForwardingNormalizedNodeStreamWriter; @@ -76,8 +76,8 @@ abstract class StreamWriterWithDisabledValidation extends ForwardingNormalizedNo */ abstract void endNodeWithDisabledValidation() throws IOException; - static final Inference errorsContainerInference(final SchemaContextHandler schemaContextHandler) { - final var stack = SchemaInferenceStack.of(schemaContextHandler.get()); + static final Inference errorsContainerInference(final DatabindContext databindContext) { + final var stack = SchemaInferenceStack.of(databindContext.modelContext()); stack.enterGrouping(Errors.QNAME); return stack.toInference(); }