From 44aa5288c76545eb021d5a19997d641c1d674129 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Thu, 17 Nov 2022 14:07:42 +0000 Subject: [PATCH] HHH-15693 An additional minor polish to the previously applied optimisation --- .../hibernate/service/internal/AbstractServiceRegistryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/service/internal/AbstractServiceRegistryImpl.java b/hibernate-core/src/main/java/org/hibernate/service/internal/AbstractServiceRegistryImpl.java index f30febdf3f..494b79c197 100644 --- a/hibernate-core/src/main/java/org/hibernate/service/internal/AbstractServiceRegistryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/service/internal/AbstractServiceRegistryImpl.java @@ -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 ); }