From 3556362c07f59885bd26860309a6426d87d1c66a Mon Sep 17 00:00:00 2001 From: xiaozhang Date: Mon, 1 Aug 2022 23:03:51 +0800 Subject: [PATCH] Revert "HBASE-27237 Address is shoule be case insensitive" This reverts commit 699d15a0 --- .../src/main/java/org/apache/hadoop/hbase/net/Address.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } /**