HDFS-11953. Remove Guava v21 usage from HDFS-7240. Contributed by Xiaoyu Yao.

This commit is contained in:
Xiaoyu Yao 2017-06-08 10:43:55 -07:00 committed by Owen O'Malley
parent 08460f1559
commit e3591aeec0
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ public final class OzoneClientUtils {
if ((value == null) || value.isEmpty()) {
return Optional.absent();
}
return Optional.of(HostAndPort.fromString(value).getHost());
return Optional.of(HostAndPort.fromString(value).getHostText());
}
/**