X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fcompat%2FAbstractNotificationListenerRegistration.java;h=4d53384c8e4e80adfa3818de43cfeff41169027f;hp=540c26131621477ef00f95d0055db2576ce7550c;hb=3859df9beca8f13f1ff2b2744ed3470a1715bec3;hpb=2727bea09c83646b6cbd2ef9672d0b7f6cf3b22f diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java index 540c261316..4d53384c8e 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java @@ -7,23 +7,26 @@ */ package org.opendaylight.controller.md.sal.binding.compat; +import static java.util.Objects.requireNonNull; + import org.opendaylight.controller.sal.binding.api.NotificationListener; import org.opendaylight.yangtools.concepts.AbstractListenerRegistration; import org.opendaylight.yangtools.yang.binding.Notification; -import com.google.common.base.Preconditions; - /** * Abstract implementation of {@link NotificationListenerRegistration}. * * @param Notification type */ -abstract class AbstractNotificationListenerRegistration extends AbstractListenerRegistration> implements NotificationListenerRegistration { +@Deprecated +abstract class AbstractNotificationListenerRegistration + extends AbstractListenerRegistration> implements NotificationListenerRegistration { private final Class type; - protected AbstractNotificationListenerRegistration(final Class type, final NotificationListener listener) { + protected AbstractNotificationListenerRegistration(final Class type, + final NotificationListener listener) { super(listener); - this.type = Preconditions.checkNotNull(type); + this.type = requireNonNull(type); } @Override