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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to