Follow-up to guava21 update, getting rid of legacy calls to getHostText (instead use new getHost).
Summary: Does the actual code migration for T169
Reviewers: shahms, fromberger
Subscribers: #core_team
@@ -40,7 +40,7 @@ public class RemoteFileData implements FileDataProvider {
public RemoteFileData(String addr) {
HostAndPort hp = HostAndPort.fromString(addr);
ManagedChannel channel =
- NettyChannelBuilder.forAddress(new InetSocketAddress(hp.getHostText(), hp.getPort()))
+ NettyChannelBuilder.forAddress(new InetSocketAddress(hp.getHost(), hp.getPort()))
.negotiationType(NegotiationType.PLAINTEXT)
.build();
stub = FileDataServiceGrpc.newStub(channel);
