diff --git a/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java b/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java index ccc176b61cf..c000b66b2a2 100644 --- a/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java +++ b/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java @@ -33,8 +33,8 @@ import io.grpc.internal.ManagedChannelImplBuilder.ClientTransportFactoryBuilder; import io.grpc.internal.SharedResourceHolder; import java.net.SocketAddress; +import java.util.Arrays; import java.util.Collection; -import java.util.Collections; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.annotation.Nullable; @@ -289,7 +289,7 @@ public void close() { @Override public Collection> getSupportedSocketAddressTypes() { - return Collections.singleton(InProcessSocketAddress.class); + return Arrays.asList(InProcessSocketAddress.class, AnonymousInProcessSocketAddress.class); } } }