Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Aug 20, 2020
1 parent c16337a commit 8491203
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package io.grpc.internal;

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.base.Preconditions;
import java.net.SocketAddress;
import java.util.concurrent.Executor;
import javax.annotation.Nullable;
Expand All @@ -26,7 +25,9 @@ public final class ManagedChannelImplBuilder
extends AbstractManagedChannelImplBuilder<ManagedChannelImplBuilder> {

private boolean authorityCheckerDisabled;
@Deprecated @Nullable private OverrideAuthorityChecker authorityChecker;
@Deprecated
@Nullable
private OverrideAuthorityChecker authorityChecker;

/**
* TODO(sergiitk): finish javadoc.
Expand Down Expand Up @@ -60,7 +61,7 @@ public ManagedChannelImplBuilder(String target,
ClientTransportFactoryBuilder clientTransportFactoryBuilder,
@Nullable ChannelBuilderDefaultPortProvider channelBuilderDefaultPortProvider) {
super(target);
this.clientTransportFactoryBuilder = checkNotNull(clientTransportFactoryBuilder,
this.clientTransportFactoryBuilder = Preconditions.checkNotNull(clientTransportFactoryBuilder,
"clientTransportFactoryBuilder cannot be null");

if (channelBuilderDefaultPortProvider != null) {
Expand All @@ -77,7 +78,7 @@ public ManagedChannelImplBuilder(SocketAddress directServerAddress, String autho
ClientTransportFactoryBuilder clientTransportFactoryBuilder,
@Nullable ChannelBuilderDefaultPortProvider channelBuilderDefaultPortProvider) {
super(directServerAddress, authority);
this.clientTransportFactoryBuilder = checkNotNull(clientTransportFactoryBuilder,
this.clientTransportFactoryBuilder = Preconditions.checkNotNull(clientTransportFactoryBuilder,
"clientTransportFactoryBuilder cannot be null");

if (channelBuilderDefaultPortProvider != null) {
Expand Down

0 comments on commit 8491203

Please sign in to comment.