File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
api/src/main/java/io/grpc
core/src/main/java/io/grpc/internal Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1717package io .grpc ;
1818
1919import com .google .common .base .Preconditions ;
20+
21+ import java .nio .channels .Channel ;
2022import java .util .List ;
2123import java .util .Map ;
2224import java .util .concurrent .Executor ;
@@ -280,13 +282,12 @@ public T useTransportSecurity() {
280282 * @return this
281283 * @since 1.18.0
282284 */
283- @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1771" )
285+ @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1771" )
284286 public T defaultLoadBalancingPolicy (String policy ) {
285- Preconditions .checkArgument (
286- LoadBalancerRegistry .getDefaultRegistry ().getProvider (policy ) != null ,
287- "invalid load balancing policy %s" , policy
288- );
289- throw new UnsupportedOperationException ();
287+ Preconditions .checkArgument ( // 4 spaces
288+ LoadBalancerRegistry .getDefaultRegistry ().getProvider (policy ) != null , // 8 spaces
289+ "invalid load balancing policy %s" , policy ); // 8 spaces
290+ throw new UnsupportedOperationException (); // 4 spaces
290291 }
291292
292293 /**
Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ public static ManagedChannelBuilder<?> forTarget(String target) {
213213 private boolean recordRetryMetrics = true ;
214214 private boolean tracingEnabled = true ;
215215 List <MetricSink > metricSinks = new ArrayList <>();
216-
217216 /**
218217 * An interface for Transport implementors to provide the {@link ClientTransportFactory}
219218 * appropriate for the channel.
You can’t perform that action at this time.
0 commit comments