Fix a warning
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / SubscribeToStreamUtil.java
index 31562f11e66d3cb61be88a9678ec1c665a408af3..d841061ea74521638093f37b62b3ad393a9ba513 100644 (file)
@@ -181,7 +181,7 @@ abstract class SubscribeToStreamUtil {
         final String streamName = ListenersBroker.createStreamNameFromUri(identifier);
         final ListenerAdapter listener = ListenersBroker.getInstance().getDataChangeListenerFor(streamName)
             .orElseThrow(() -> new RestconfDocumentedException("No listener found for stream " + streamName,
-                ErrorType.PROTOCOL.APPLICATION, ErrorTag.DATA_MISSING));
+                ErrorType.APPLICATION, ErrorTag.DATA_MISSING));
 
         listener.setQueryParams(
                 notificationQueryParams.getStart(),