Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / state / BGPRIBStateImpl.java
index e09e5f5899a414ffb2f6d22bbafd2a6c1c321ece..6c523ec15b26f7e29d1e863af7c89ac7fb85231e 100644 (file)
@@ -9,6 +9,8 @@
 package org.opendaylight.protocol.bgp.rib.impl.state;
 
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import java.util.HashMap;
 import java.util.Map;
@@ -38,8 +40,8 @@ public class BGPRIBStateImpl extends DefaultRibReference implements BGPRIBState,
     protected BGPRIBStateImpl(final KeyedInstanceIdentifier<Rib, RibKey> instanceIdentifier,
         @Nonnull final BgpId routeId, @Nonnull final AsNumber localAs) {
         super(instanceIdentifier);
-        this.routeId = Preconditions.checkNotNull(routeId);
-        this.localAs = Preconditions.checkNotNull(localAs);
+        this.routeId = requireNonNull(routeId);
+        this.localAs = requireNonNull(localAs);
     }
 
     @Override