tabish121 commented on code in PR #4742:
URL: https://github.com/apache/activemq-artemis/pull/4742#discussion_r1457610297


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/config/amqpBrokerConnectivity/AMQPBrokerConnectionElement.java:
##########
@@ -95,4 +98,31 @@ public void setName(String name) {
       this.name = name;
    }
 
+   @Override
+   public int hashCode() {
+      // Don't pass the parent into hash or you will get a loop of hash code 
computations.
+      return Objects.hash(matchAddress, name, queueName, type) + 
System.identityHashCode(parent);

Review Comment:
   Good catch, that should have been removed but I missed it.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to