*/
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;
* @param <N> Notification type
* @param <A> Aggregator type
*/
+@Deprecated(forRemoval = true)
abstract class AggregatedNotificationListenerRegistration<N extends Notification, A>
extends AbstractNotificationListenerRegistration<N> {
private final A aggregator;
protected AggregatedNotificationListenerRegistration(final Class<? extends Notification> type,
final NotificationListener<N> listener, final A aggregator) {
super(type, listener);
- this.aggregator = Preconditions.checkNotNull(aggregator);
+ this.aggregator = requireNonNull(aggregator);
}
protected A getAggregator() {