eventmesh
eventmesh copied to clipboard
[Bug] A boxed value is unboxed and then immediately reboxed
Search before asking
- [X] I had searched in the issues and found no similar issues.
Environment
Mac
EventMesh version
master
What happened
A boxed value is unboxed and then immediately reboxed: Integer.valueOf(RequestCode.HEARTBEAT.getRequestCode()) The return value of getRequestCode() is already Integer
How to reproduce
In module eventmesh-runtime In class org.apache.eventmesh.runtime.core.protocol.grpc.processor.HeartbeatProcessor In method org.apache.eventmesh.runtime.core.protocol.grpc.processor.HeartbeatProcessor.doAclCheck(Heartbeat) At [line 107]
Debug logs
No response
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
I will finish this issue .
Hey team, Can I pick this?
I would like to work on this issue, hence would like to request for it to be assigned to me Thanks in advance
I would like to work on this issue, hence would like to request for it to be assigned to me Thanks in advance
welcome
This issue has already been fixed https://github.com/apache/eventmesh/commit/94545dcbc96256e65ca95d7475d11bd8d3a11a24#diff-5603d7fd94b845776b2451618f4722e6b9214d69214be062d52f6e6be9fba98aR111
This issue has already been fixed 94545dc#diff-5603d7fd94b845776b2451618f4722e6b9214d69214be062d52f6e6be9fba98aR111