keith-turner commented on code in PR #6120:
URL: https://github.com/apache/accumulo/pull/6120#discussion_r2817875204


##########
core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java:
##########
@@ -412,4 +412,9 @@ public static void 
ensureNonOverlappingGroups(Map<String,Set<Text>> groups) {
       all.addAll(entry.getValue());
     }
   }
+
+  @SuppressWarnings("unchecked")
+  public static <T> List<T> newPreallocatedList(int size) {

Review Comment:
   Could put it in a class named PreallocatedList with a single static method 
named create.  Moving the informational naming from the static method to the 
class name.  Then could call `List<String> pl = PreallocatedList.create(10);`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to