This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 52252be  ARTEMIS-2787 - Fix equals method
     new 5f60b29  This closes #3174
52252be is described below

commit 52252be948b0bf83117ba10cff6edda814558387
Author: Michael Pearce <[email protected]>
AuthorDate: Tue Jun 9 10:30:09 2020 +0100

    ARTEMIS-2787 - Fix equals method
---
 .../core/impl/wireformat/SessionQueueQueryResponseMessage_V3.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionQueueQueryResponseMessage_V3.java
 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionQueueQueryResponseMessage_V3.java
index 7be0210..5f09e96 100644
--- 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionQueueQueryResponseMessage_V3.java
+++ 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionQueueQueryResponseMessage_V3.java
@@ -501,10 +501,10 @@ public class SessionQueueQueryResponseMessage_V3 extends 
SessionQueueQueryRespon
             return false;
       } else if (!ringSize.equals(other.ringSize))
          return false;
-      if (enabled == enabled) {
-         if (other.ringSize != null)
+      if (enabled == null) {
+         if (other.enabled != null)
             return false;
-      } else if (!enabled.equals(other.ringSize))
+      } else if (!enabled.equals(other.enabled))
          return false;
       if (defaultConsumerWindowSize == null) {
          if (other.defaultConsumerWindowSize != null)

Reply via email to