You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/10/26 17:18:48 UTC

[GitHub] [solr] risdenk commented on pull request #1127: SOLR-16477 Collection RENAME api creates broken alias

risdenk commented on PR #1127:
URL: https://github.com/apache/solr/pull/1127#issuecomment-1292362469

   @stillalex maybe I'm old school, but I think the method looks better written without streams:
   
   ```
   public static Map<String, List<String>> convertMapOfCommaDelimitedToMapOfList(
         Map<String, String> collectionAliasMap) {
       Map<String, List<String>> map = new LinkedHashMap<>();
       for (Map.Entry<String, String> entry : collectionAliasMap.entrySet()) {
         map.put(entry.getKey(), splitCollections(entry.getValue()));
       }
       return map;
     }
   ```
   
   assuming I converted that back correctly.


-- 
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: issues-unsubscribe@solr.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org