TomMD opened a new pull request #1818:
URL: https://github.com/apache/lucene-solr/pull/1818


   # Description
   
   Infer, via Muse, [called 
out](https://console.muse.dev/result/TomMD/lucene-solr/01EH5WXS6C1RH1NFYHP6ATXTZ9?search=JsonSchemaValidator&tab=results)
 a few inefficient patterns which this PR fixes.
   
   # Solution
   
   The patters are:
   
   ```
   for(key in hashmap) doThing(hashmap.get(key));
   ```
   
   And the fix is:
   
   ```
   for(value in hashmap) doThing(value)
   ```
   
   Pretty basic.
   
   - [X ] I have created a Jira issue and added the issue ID to my pull request 
title.
   - [X ] I have developed this patch against the `master` branch.


----------------------------------------------------------------
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.

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