You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2015/09/01 02:02:18 UTC

[2/2] activemq-artemis git commit: simply a supressWarnings annotation

simply a supressWarnings annotation


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d31b0ea3
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d31b0ea3
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d31b0ea3

Branch: refs/heads/master
Commit: d31b0ea35256dbf89038557aaf9b15ead75bc8e7
Parents: 0f87505
Author: Clebert Suconic <cl...@apache.org>
Authored: Mon Aug 31 20:02:10 2015 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Mon Aug 31 20:02:10 2015 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d31b0ea3/artemis-core-client/src/main/java/org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java
index ab8d10f..cb7a4bd 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/uri/TCPServerLocatorSchema.java
@@ -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 + "]");
       }