mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-15693 An additional minor polish to the previously applied optimisation
This commit is contained in:
parent
e89063ae91
commit
44aa5288c7
@ -188,7 +188,7 @@ public <R extends Service> R getService(Class<R> serviceRole) {
|
|||||||
//Fast-path for ClassLoaderService as it's extremely hot during bootstrap
|
//Fast-path for ClassLoaderService as it's extremely hot during bootstrap
|
||||||
//(and after bootstrap service loading performance is less interesting as it's
|
//(and after bootstrap service loading performance is less interesting as it's
|
||||||
//ideally being cached by long term consumers)
|
//ideally being cached by long term consumers)
|
||||||
if ( ClassLoaderService.class.equals( serviceRole ) ) {
|
if ( ClassLoaderService.class == serviceRole ) {
|
||||||
if ( parent != null ) {
|
if ( parent != null ) {
|
||||||
return parent.getService( serviceRole );
|
return parent.getService( serviceRole );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user