From 19e036ac942ae0c1257bb551ae1ed04b37e2b3e4 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 11 Apr 2019 22:08:37 +0200 Subject: [PATCH] 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 --- .../mdsal/binding/api/NotificationPublishService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.")); /** -- 2.36.6