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
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ public abstract class AbstractServiceRegistryImpl
//Fast-path for ClassLoaderService as it's extremely hot during bootstrap
//(and after bootstrap service loading performance is less interesting as it's
//ideally being cached by long term consumers)
if ( ClassLoaderService.class.equals( serviceRole ) ) {
if ( ClassLoaderService.class == serviceRole ) {
if ( parent != null ) {
return parent.getService( serviceRole );
}