Skip to content

Commit 9a56883

Browse files
Update hibernate-core/src/main/java/org/hibernate/resource/jdbc/internal/ResourceRegistryStandardImpl.java
Co-authored-by: Gavin King <[email protected]>
1 parent 695cc56 commit 9a56883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/resource/jdbc/internal/ResourceRegistryStandardImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
* <p>
2727
* Note regarding performance: we had evidence that allocating {@code Iterator}s
2828
* to implement the cleanup on each element recursively was the dominant
29-
* resource cost, so we decided using "forEach" and lambdas in this case.
30-
* However the forEach/lambda combination is able to dodge allocating
29+
* resource cost, so we decided to use "for each" and lambdas in this case.
30+
* However, the "for each"/lambda combination is able to dodge allocating
3131
* {@code Iterator}s on {@code HashMap} and {@code ArrayList}, but not on {@code HashSet} (at least on JDK8 and 11).
3232
* Therefore some types which should ideally be modelled as a {@code Set} have
3333
* been implemented using {@code HashMap}.

0 commit comments

Comments
 (0)