HDFS-11953. Remove Guava v21 usage from HDFS-7240. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
08460f1559
commit
e3591aeec0
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue