Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / TableContext.java
index e90be4620aaccb4b899fa4eb6d506685dfa96255..50a092955ce7d4b68f5c75e413f2728197f448c4 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.protocol.bgp.rib.impl;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import javax.annotation.concurrent.NotThreadSafe;
 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
@@ -28,8 +30,8 @@ final class TableContext {
     private final RIBSupportContext tableSupport;
 
     TableContext(final RIBSupportContext tableSupport, final YangInstanceIdentifier tableId) {
-        this.tableSupport = Preconditions.checkNotNull(tableSupport);
-        this.tableId = Preconditions.checkNotNull(tableId);
+        this.tableSupport = requireNonNull(tableSupport);
+        this.tableId = requireNonNull(tableId);
     }
 
     YangInstanceIdentifier getTableId() {