*/
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;
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);
}
/**