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%2FAggregatedNotificationListenerRegistration.java;h=1979b222c8455e30171801ba66eb355bc3238d01;hp=339ad68ff762cdbf996d81f3bb228673cbbb5dd7;hb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;hpb=03c13bd8a8bb89a729d739eb2fcd501a4dfa5439 diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AggregatedNotificationListenerRegistration.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AggregatedNotificationListenerRegistration.java index 339ad68ff7..1979b222c8 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AggregatedNotificationListenerRegistration.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AggregatedNotificationListenerRegistration.java @@ -7,7 +7,8 @@ */ package org.opendaylight.controller.md.sal.binding.compat; -import com.google.common.base.Preconditions; +import static java.util.Objects.requireNonNull; + import org.opendaylight.controller.sal.binding.api.NotificationListener; import org.opendaylight.yangtools.yang.binding.Notification; @@ -23,6 +24,7 @@ import org.opendaylight.yangtools.yang.binding.Notification; * @param Notification type * @param Aggregator type */ +@Deprecated(forRemoval = true) abstract class AggregatedNotificationListenerRegistration extends AbstractNotificationListenerRegistration { private final A aggregator; @@ -30,7 +32,7 @@ abstract class AggregatedNotificationListenerRegistration type, final NotificationListener listener, final A aggregator) { super(type, listener); - this.aggregator = Preconditions.checkNotNull(aggregator); + this.aggregator = requireNonNull(aggregator); } protected A getAggregator() {