You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "himansh295 (via GitHub)" <gi...@apache.org> on 2023/02/07 12:12:38 UTC
[GitHub] [incubator-eventmesh] himansh295 commented on a diff in pull request #3046: [ISSUE #998] Overriding Session.java hashCode function
himansh295 commented on code in PR #3046:
URL: https://github.com/apache/incubator-eventmesh/pull/3046#discussion_r1098579353
##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/Session.java:
##########
@@ -280,6 +280,16 @@ public boolean equals(Object o) {
}
return true;
}
+
+ @Override
+ public int hashCode()
+ {
+ int result = 17; //primeNumber
+ result += 31*result + client!=null?Objects.hash(client) : 0;
Review Comment:
Sure @xwm1992
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org