Tag NotificationPublishService.REJECTED as non-null 78/81578/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Apr 2019 20:08:37 +0000 (22:08 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Apr 2019 20:08:37 +0000 (22:08 +0200)
This can only ever be a non-null constant, tag is as such.

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

index 1fe34a0011961f6a720dcb8691071ec42067e41a..d679c188192d3502bccc9637d0bc40d59f609131 100644 (file)
@@ -30,12 +30,11 @@ import org.opendaylight.yangtools.yang.binding.Notification;
  * notification has or has not been seen.
  */
 public interface NotificationPublishService extends BindingService {
-
     /**
      * Well-known value indicating that the binding-aware implementation is currently not
      * able to accept a notification.
      */
-    ListenableFuture<Object> REJECTED = FluentFutures.immediateFailedFluentFuture(
+    @NonNull ListenableFuture<Object> REJECTED = FluentFutures.immediateFailedFluentFuture(
             new NotificationRejectedException("Rejected due to resource constraints."));
 
     /**