Alonexc opened a new issue, #3516: URL: https://github.com/apache/incubator-eventmesh/issues/3516
### 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/client/impl/SubClientImpl.java analysis and explanation: a. Field may be 'final'[line 52,56]   b. Anonymous new Runnable() can be replaced with lambda[line 99]  c. Swap these 2 arguments so they are in the correct order: expected value, actual value.[line 168-183]  d. Duplicate branch in 'switch'[line 186,189]  e. 'if' statement can be simplified[line 194]  ### Describe the solution you'd like a. add final. b. Replace with lambda  c. Swap actual and expected values.  d. Merge the case  e. Simplify “if else”  ### 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]
