ArbaazKhan1 commented on code in PR #6120:
URL: https://github.com/apache/accumulo/pull/6120#discussion_r2817749963
##########
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:
LocalityGroup seemed the best since it uses the method and it seemed a
little redundant to create a new class just for this method
--
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]