X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Frests%2Fservices%2Fimpl%2FCreateStreamUtil.java;h=c5e7757fcfdcc4fdd5b5e69008f73081d1dbe3f6;hb=9c6dcf96832c85198d32a2c3d255e1dde73b98b4;hp=9ddce5fbae6a464842f1815d3646f0539ddcd54a;hpb=c66375496fd6853f5d4a49c1fb10465831c173ce;p=netconf.git diff --git a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/CreateStreamUtil.java b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/CreateStreamUtil.java index 9ddce5fbae..c5e7757fcf 100644 --- a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/CreateStreamUtil.java +++ b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/CreateStreamUtil.java @@ -145,14 +145,12 @@ final class CreateStreamUtil { * * @param baseUrl base Url * @param payload data - * @param refSchemaCtx Reference to {@link EffectiveModelContext}. * @param streamUtil stream utility * @param mountPointService dom mount point service * @return {@link DOMRpcResult} - Output of RPC - example in JSON */ static DOMRpcResult createDeviceNotificationListener(final String baseUrl, final NormalizedNodePayload payload, - final EffectiveModelContext refSchemaCtx, final SubscribeToStreamUtil streamUtil, - final DOMMountPointService mountPointService) { + final SubscribeToStreamUtil streamUtil, final DOMMountPointService mountPointService) { // parsing out of container with settings and path // FIXME: ugly cast final ContainerNode data = (ContainerNode) requireNonNull(payload).getData(); @@ -181,7 +179,6 @@ final class CreateStreamUtil { .orElseThrow(() -> new RestconfDocumentedException("Mount point does not support notifications", ErrorType.APPLICATION, ErrorTag.OPERATION_FAILED)); - // FIXME: what is the relationship to the unused refSchemaCtx? final EffectiveModelContext mountModelContext = mountPoint.getService(DOMSchemaService.class) .orElseThrow(() -> new RestconfDocumentedException("Mount point schema not available", ErrorType.APPLICATION, ErrorTag.OPERATION_FAILED))