From: Robert Varga Date: Thu, 11 Apr 2019 20:08:37 +0000 (+0200) Subject: Tag NotificationPublishService.REJECTED as non-null X-Git-Tag: v4.0.1~43 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=19e036ac942ae0c1257bb551ae1ed04b37e2b3e4;p=mdsal.git Tag NotificationPublishService.REJECTED as non-null This can only ever be a non-null constant, tag is as such. Change-Id: I2d011a66fa61b164dab184ab0808a77ee290c774 Signed-off-by: Robert Varga --- diff --git a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationPublishService.java b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationPublishService.java index 1fe34a0011..d679c18819 100644 --- a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationPublishService.java +++ b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationPublishService.java @@ -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 REJECTED = FluentFutures.immediateFailedFluentFuture( + @NonNull ListenableFuture REJECTED = FluentFutures.immediateFailedFluentFuture( new NotificationRejectedException("Rejected due to resource constraints.")); /**