Alonexc opened a new issue, #3161: URL: https://github.com/apache/incubator-eventmesh/issues/3161
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues. ### Enhancement Request  located at: eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/admin/handler/RedirectClientByPathHandlerTest.java line 114 analysis and explanation: This method assigns a Boxed boolean constant to a primitive boolean variable, or assigns a primitive boolean constant to a Boxed boolean variable. Use the correct constant for the variable desired. Use boolean b = true; boolean b = false; or Boolean b = Boolean.TRUE; Boolean b = Boolean.FALSE; Be aware that this boxing happens automatically when you might not expect it. has two cases of this needless autoboxing. This can be made more efficient by simply substituting in the constant values: Map statusMap = ... public Boolean someMethod() { statusMap. put("foo", Boolean.TRUE); return Boolean.FALSE; } ### Describe the solution you'd like  ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
