You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/12/01 09:05:50 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #2337: [Enhancement] Inefficient use of keySet iterator instead of entrySet iterator [BeanUtils]

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

   ### 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/205010269-102e13e1-f0a1-4e78-9699-a2e9f7a503a0.png)
   located at:
   eventmesh-connector-plugin/eventmesh-connector-rocketmq/src/main/java/org/apache/eventmesh/connector/rocketmq/utils/BeanUtils.java line 56
   analysis and explanation:
   This method accesses the value of a Map entry, using a key that was retrieved from a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.
   
   
   ### Describe the solution you'd like
   
   reference:
   ![image](https://user-images.githubusercontent.com/91315508/205010480-948f4195-5f3b-4f1d-bd53-70c81855c75c.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: dev-unsubscribe@eventmesh.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] jonyangx closed issue #2337: [Enhancement] Inefficient use of keySet iterator instead of entrySet iterator [BeanUtils]

Posted by GitBox <gi...@apache.org>.
jonyangx closed issue #2337: [Enhancement] Inefficient use of keySet iterator instead of entrySet iterator [BeanUtils]
URL: https://github.com/apache/incubator-eventmesh/issues/2337


-- 
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: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org