Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / AbstractReflectingExportPolicy.java
index c6f59ebf9db9e0510459c0f20f484daf2db51949..ce5a034ec0e19fc4b9e07d304302cfd2f7808f25 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.protocol.bgp.rib.impl;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import javax.annotation.Nonnull;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.ClusterIdentifier;
@@ -22,8 +23,8 @@ abstract class AbstractReflectingExportPolicy extends AbstractExportPolicy {
     private final Ipv4Address originatorId;
 
     protected AbstractReflectingExportPolicy(final Ipv4Address originatorId, final ClusterIdentifier clusterId) {
-        this.originatorId = Preconditions.checkNotNull(originatorId);
-        this.clusterId = Preconditions.checkNotNull(clusterId);
+        this.originatorId = requireNonNull(originatorId);
+        this.clusterId = requireNonNull(clusterId);
     }
 
     /**