Alonexc opened a new issue, #3164:
URL: https://github.com/apache/incubator-eventmesh/issues/3164

   ### 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
   
   
![image](https://user-images.githubusercontent.com/91315508/219287090-750cc3aa-a4ec-4a6d-b0bc-7ca7513ee67a.png)
   located at:
   
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/HttpClientGroupMapping.java
 line 398,470
   analysis and explanation:
   This method checks for the presence of a key in a map using containsKey(), 
before attempting to fetch the value of the key using get().  This equates to 
doing two map lookups in a row.  It is much simpler to just fetch the value 
with get, and checking for non null instead.
   
   
   ### Describe the solution you'd like
   
   
![image](https://user-images.githubusercontent.com/91315508/219287117-22df8db5-b803-4bed-a2ec-6f9547903f2a.png)
   
   
   ### 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]

Reply via email to