Fix a warning 41/97741/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Oct 2021 18:19:48 +0000 (20:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 5 Oct 2021 10:26:04 +0000 (12:26 +0200)
The intent is to report APPLICATION here, reference is statically.

Change-Id: If7543c8c962cff450b3ce867eaa9606c1212e42c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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(),