X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDebugThreePhaseCommitCohort.java;h=afb5773f43ff55549af747a71e87be844c0f3c30;hb=04f22714755ee8e52a63386cc1f4290402659838;hp=9f9d169d1ac2227ce9263b1cf4196497d4d3307f;hpb=634dfac8eead60f443bf75e749c70d1f2bb29198;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java index 9f9d169d1a..afb5773f43 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java @@ -7,8 +7,9 @@ */ package org.opendaylight.controller.cluster.datastore; +import static java.util.Objects.requireNonNull; + import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Preconditions; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; @@ -38,9 +39,9 @@ class DebugThreePhaseCommitCohort extends AbstractThreePhaseCommitCohort DebugThreePhaseCommitCohort(final TransactionIdentifier transactionId, final AbstractThreePhaseCommitCohort delegate, final Throwable debugContext) { - this.delegate = Preconditions.checkNotNull(delegate); - this.debugContext = Preconditions.checkNotNull(debugContext); - this.transactionId = Preconditions.checkNotNull(transactionId); + this.delegate = requireNonNull(delegate); + this.debugContext = requireNonNull(debugContext); + this.transactionId = requireNonNull(transactionId); } private ListenableFuture addFutureCallback(final ListenableFuture future) {