File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/main/java/org/hibernate/resource/jdbc/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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}.
You can’t perform that action at this time.
0 commit comments