HHH-15693 An additional minor polish to the previously applied optimisation

This commit is contained in:
Sanne Grinovero 2022-11-17 14:07:42 +00:00 committed by Sanne Grinovero
parent e89063ae91
commit 44aa5288c7

View File

@ -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 );
} }