You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "xwm1992 (via GitHub)" <gi...@apache.org> on 2023/02/07 08:11:08 UTC

[GitHub] [incubator-eventmesh] xwm1992 commented on a diff in pull request #3046: [ISSUE #998] Overriding Session.java hashCode function

xwm1992 commented on code in PR #3046:
URL: https://github.com/apache/incubator-eventmesh/pull/3046#discussion_r1098310323


##########
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);
+        result += 31*result + context!=null?Objects.hash(contetx);
+        result += 31*result + eventMeshTCPConfiguration!=null?Objects.hash(eventMeshTCPConfiguration);

Review Comment:
   @himansh295 These code can't be compiled please fix.



-- 
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