X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fapi%2FNotificationService.java;h=8d49fb5e5db3f074c0340ed8b537b5b98fc337e4;hb=a10c289bba4f28edb60fd555ee6d0f69cadd5c5f;hp=42729f651254ffaa3d4cb7964b8e15b018994534;hpb=494252860011b0ab46ed1d1ad7511f100ca255b9;p=mdsal.git diff --git a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationService.java b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationService.java index 42729f6512..8d49fb5e5d 100644 --- a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationService.java +++ b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/NotificationService.java @@ -7,6 +7,7 @@ */ package org.opendaylight.mdsal.binding.api; +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.binding.NotificationListener; @@ -92,5 +93,5 @@ public interface NotificationService extends BindingService { * @return a {@link ListenerRegistration} instance that should be used to unregister the listener * by invoking the {@link ListenerRegistration#close()} method when no longer needed. */ - ListenerRegistration registerNotificationListener(T listener); + @NonNull ListenerRegistration registerNotificationListener(@NonNull T listener); }