Clean up DOMNotificationPublishService.REJECTED 75/109175/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 16:38:23 +0000 (17:38 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 16:55:09 +0000 (17:55 +0100)
Reduce qualifier from <Object> to <?>, so that the value remains
completely opaque. Also add a @NonNull annotation.

Change-Id: I99d0e04327bcf9b67ec6b1f760e2dec24fc70ffa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMNotificationPublishService.java

index f6dcf4789010ab1792b5844cced59b757bbf8b8d..02615efa7a4fff76041f8e6d2a7cb73a20138593 100644 (file)
@@ -24,10 +24,9 @@ import org.opendaylight.yangtools.util.concurrent.FluentFutures;
  */
 public interface DOMNotificationPublishService extends DOMService {
     /**
-     * Well-known value indicating that the implementation is currently not
-     * able to accept a notification.
+     * Well-known value indicating that the implementation is currently not able to accept a notification.
      */
-    ListenableFuture<Object> REJECTED = FluentFutures.immediateFailedFluentFuture(
+    @NonNull ListenableFuture<?> REJECTED = FluentFutures.immediateFailedFluentFuture(
         new DOMNotificationRejectedException("Unacceptable blocking conditions encountered"));
 
     /**