From 7be2b6c08ddda6681b70eb10c845a1d230524906 Mon Sep 17 00:00:00 2001 From: Larry Safran Date: Tue, 19 Dec 2023 10:11:11 -0800 Subject: [PATCH] Add increment as identified in #10768 (#10769) --- util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java b/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java index d8afdc09a18..bf030420008 100644 --- a/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java +++ b/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java @@ -560,7 +560,7 @@ public Endpoint(EquivalentAddressGroup eag) { addrs = new String[eag.getAddresses().size()]; int i = 0; for (SocketAddress address : eag.getAddresses()) { - addrs[i] = address.toString(); + addrs[i++] = address.toString(); } Arrays.sort(addrs);