*/
package org.opendaylight.netconf.sal.connect.netconf.sal;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.MoreExecutors;
import java.util.ArrayList;
NetconfDeviceTopologyAdapter(final RemoteDeviceId id, final TransactionChain txChain) {
this.id = id;
- this.txChain = Preconditions.checkNotNull(txChain);
+ this.txChain = requireNonNull(txChain);
this.networkTopologyPath = InstanceIdentifier.builder(NetworkTopology.class).build();
this.topologyListPath = networkTopologyPath
}
public void setTxChain(final TransactionChain txChain) {
- this.txChain = Preconditions.checkNotNull(txChain);
+ this.txChain = requireNonNull(txChain);
}
}