diff --git a/core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java b/core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java index 00f54698137b..33687d476811 100644 --- a/core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java +++ b/core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java @@ -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; @@ -26,7 +25,9 @@ public final class ManagedChannelImplBuilder extends AbstractManagedChannelImplBuilder { private boolean authorityCheckerDisabled; - @Deprecated @Nullable private OverrideAuthorityChecker authorityChecker; + @Deprecated + @Nullable + private OverrideAuthorityChecker authorityChecker; /** * TODO(sergiitk): finish javadoc. @@ -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) { @@ -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) {