import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
private final AbstractThreePhaseCommitCohort<?> delegate;
private final Throwable debugContext;
private final TransactionIdentifier transactionId;
private final AbstractThreePhaseCommitCohort<?> delegate;
private final Throwable debugContext;
private final TransactionIdentifier transactionId;
private Logger log = LOG;
DebugThreePhaseCommitCohort(final TransactionIdentifier transactionId,
final AbstractThreePhaseCommitCohort<?> delegate, final Throwable debugContext) {
private Logger log = LOG;
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);