Tag NotificationPublishService.REJECTED as non-null 02/81602/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Apr 2019 20:08:37 +0000 (22:08 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 12 Apr 2019 12:43:51 +0000 (12:43 +0000)
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>
(cherry picked from commit 19e036ac942ae0c1257bb551ae1ed04b37e2b3e4)

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."));
 
     /**