ddanielr commented on code in PR #6120:
URL: https://github.com/apache/accumulo/pull/6120#discussion_r2817691769
##########
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:
Should this be moved out of LocalityGroupUtil?
There's not really anything in this static method that's related to
LocalityGroups.
Maybe it makes sense to have `DataTypeUtil`?
--
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]