Sanne/hibernate-core — comment on commit 40355a6d6b46ee06ab6df4dee56ebbc34d6ce5e5
File: hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcResourceRegistryImpl.java line 64
By Sanne:

yes your solution is cleaner, and no I dind't look into differences in the profiler, I guess they are equivalent performance-wise.

Reject this pull, I'll prepare a new one.