override HostAndPort#hashCode
This commit is contained in:
@@ -33,6 +33,11 @@ public class HostAndPort {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return 31 * convertHost(host).hashCode() + port;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return host + ":" + port;
|
return host + ":" + port;
|
||||||
|
|||||||
Reference in New Issue
Block a user