Revert "HBASE-27237 Address is shoule be case insensitive"

This reverts commit 699d15a0
This commit is contained in:
xiaozhang 2022-08-01 23:03:51 +08:00
parent 699d15a0ec
commit 3556362c07
1 changed files with 2 additions and 3 deletions

View File

@ -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<Address> {
*/
@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<Address> {
@Override
public String toString() {
return this.hostAndPort.toString().toLowerCase(Locale.ROOT);
return this.hostAndPort.toString();
}
/**