From 102f0f8ac8b112a3d1e23066aa497d5e152a1305 Mon Sep 17 00:00:00 2001 From: Jihun Cho Date: Wed, 24 Jul 2019 13:29:19 -0700 Subject: [PATCH] core: fix linter error --- .../test/java/io/grpc/util/GracefulSwitchLoadBalancerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/test/java/io/grpc/util/GracefulSwitchLoadBalancerTest.java b/core/src/test/java/io/grpc/util/GracefulSwitchLoadBalancerTest.java index b861d72688..59bfaae210 100644 --- a/core/src/test/java/io/grpc/util/GracefulSwitchLoadBalancerTest.java +++ b/core/src/test/java/io/grpc/util/GracefulSwitchLoadBalancerTest.java @@ -72,8 +72,7 @@ public class GracefulSwitchLoadBalancerTest { @Before public void setUp() { - for (int i = 0; i < lbPolicies.length; i++) { - String lbPolicy = lbPolicies[i]; + for (String lbPolicy : lbPolicies) { LoadBalancerProvider lbProvider = new FakeLoadBalancerProvider(lbPolicy); lbProviders.put(lbPolicy, lbProvider); lbRegistry.register(lbProvider);