bruno-roustant commented on code in PR #1466:
URL: https://github.com/apache/solr/pull/1466#discussion_r1144821047


##########
solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java:
##########
@@ -77,7 +77,7 @@ protected boolean lessThan(Long a, Long b) {
             }
           };
 
-      Map<String, Long> childToModificationZxid = 
Maps.newHashMapWithExpectedSize(children.size());
+      Map<String, Long> childToModificationZxid = new 
HashMap<>(children.size());

Review Comment:
   Ah, I didn't realize it is Lucene 9.5. I like David's idea to have a 
separate PR for that. However we will lose track of the spots where to use this 
construction with this PR. Maybe let a comment/todo?



-- 
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-unsubscr...@solr.apache.org

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


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

Reply via email to