mbaedke commented on code in PR #1790:
URL: https://github.com/apache/jackrabbit-oak/pull/1790#discussion_r1799157589
##########
oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java:
##########
@@ -180,6 +202,14 @@ public static <K> Set<K> newLinkedHashSet(final int
capacity) {
return new LinkedHashSet<>(ensureCapacity(capacity));
}
+ /**
+ * Creates a new, empty IdentityHashSet with default size.
+ */
+ @NotNull
+ public static <E> Set<E> newIdentityHashSet() {
+ return Collections.newSetFromMap(Maps.newIdentityHashMap());
+ }
+
Review Comment:
Why not just return Sets.newIdentityHashSet() ?
--
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]