diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java index cdcd82472e3..61b445fcefe 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java @@ -22,7 +22,6 @@ import org.apache.commons.lang3.StringUtils; import org.apache.yetus.audience.InterfaceAudience; import org.apache.hbase.thirdparty.com.google.common.net.HostAndPort; -import java.util.Locale; /** * An immutable type to hold a hostname and port combo, like an Endpoint or @@ -77,7 +76,7 @@ public class Address implements Comparable
{ */ @Deprecated public String getHostname() { - return this.hostAndPort.getHost().toLowerCase(Locale.ROOT); + return this.hostAndPort.getHost(); } public int getPort() { @@ -86,7 +85,7 @@ public class Address implements Comparable { @Override public String toString() { - return this.hostAndPort.toString().toLowerCase(Locale.ROOT); + return this.hostAndPort.toString(); } /**