simply a supressWarnings annotation
This commit is contained in:
parent
0f8750573c
commit
d31b0ea352
|
@ -76,10 +76,13 @@ public class TCPServerLocatorSchema extends AbstractServerLocatorSchema {
|
|||
return new URI(SchemaConstants.TCP, null, getHost(params), getPort(params), null, createQuery(params, query), fragment.toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings("StringEquality")
|
||||
private static Map<String, Object> escapeIPv6Host(Map<String, Object> params) {
|
||||
String host = (String) params.get("host");
|
||||
String newHost = IPV6Util.encloseHost(host);
|
||||
|
||||
// We really want to check the objects here
|
||||
// Some bug finders may report this as an error, hence the SupressWarnings on this method
|
||||
if (host != newHost) {
|
||||
params.put("host", "[" + host + "]");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue