Fix modernization issues
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / java / org / opendaylight / controller / remote / rpc / registry / gossip / GossipEnvelope.java
index a6a0c2b6f790a93d29ac56d9745484a97dacc65d..950b5f9f080a51acc28689269a211ca4c079b1a2 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.controller.remote.rpc.registry.gossip;
 
+import static java.util.Objects.requireNonNull;
+
 import akka.actor.Address;
-import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableMap;
 import java.io.Serializable;
 import java.util.Map;
@@ -21,7 +22,7 @@ final class GossipEnvelope implements Serializable {
     private final Address to;
 
     GossipEnvelope(final Address from, final Address to, final Map<Address, ? extends Bucket<?>> buckets) {
-        this.to = Preconditions.checkNotNull(to);
+        this.to = requireNonNull(to);
         this.buckets = ImmutableMap.copyOf(buckets);
         this.from = from;
     }