diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/connection/DriverManagerRegistrationTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/connection/DriverManagerRegistrationTest.java index d54cd45c6e..6f17128726 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/connection/DriverManagerRegistrationTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/connection/DriverManagerRegistrationTest.java @@ -73,11 +73,7 @@ public class DriverManagerRegistrationTest extends BaseUnitTestCase { } private static ClassLoader determineClassLoader() { - ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); - if ( classLoader == null ) { - classLoader = DriverManagerRegistrationTest.class.getClassLoader(); - } - return classLoader; + return DriverManagerRegistrationTest.class.getClassLoader(); } @AfterClass