eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug] Forget to override hashcode()

Open kirinzhu opened this issue 2 years ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

This class overrides equals(Object), but does not override hashCode(). It just inherits the implementation of hashCode() from java.lang.Object.

How to reproduce

In module eventmesh-runtime In class org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session In method org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session.equals(Object) In [lines 257-273]

Debug logs

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

kirinzhu avatar Jul 06 '22 12:07 kirinzhu