Bump upstreams for Silicon
[genius.git] / fcapsapplication / fcapsapplication-impl / src / main / java / org / opendaylight / genius / fcapsapp / FcapsProvider.java
index 0c8d5dc4b8fbe5b29e3d37cae114d5831b016d2e..e546da63524f02336571a6f07b77bce74c3ef615 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.genius.fcapsapp;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.inject.Inject;
@@ -52,11 +53,10 @@ public class FcapsProvider implements AutoCloseable {
                          @Reference final NotificationService notificationService,
                          final PacketInCounterHandler packetInCounterHandler,
                          final NodeEventListener nodeEventListener) {
-        this.dataBroker = Preconditions.checkNotNull(dataBroker, "DataBroker can not be null!");
+        this.dataBroker = requireNonNull(dataBroker, "DataBroker can not be null!");
         LOG.info("FcapsProvider dataBroker is set");
 
-        this.notificationService = Preconditions.checkNotNull(notificationService,
-                "notificationService can not be null!");
+        this.notificationService = requireNonNull(notificationService, "notificationService can not be null!");
         LOG.info("FcapsProvider notificationProviderService is set");
 
         this.packetInCounterHandler = packetInCounterHandler;