mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Consistent use of ClassUtils.forName instead of class.getClassLoader().loadClass
Issue: SPR-11780
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ public class DefaultPersistenceUnitManager
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<? extends Annotation> converterAnnotation = (Class<? extends Annotation>)
|
||||
DefaultPersistenceUnitManager.class.getClassLoader().loadClass("javax.persistence.Converter");
|
||||
ClassUtils.forName("javax.persistence.Converter", DefaultPersistenceUnitManager.class.getClassLoader());
|
||||
entityTypeFilters.add(new AnnotationTypeFilter(converterAnnotation, false));
|
||||
}
|
||||
catch (ClassNotFoundException ex) {
|
||||
|
||||
Reference in New Issue
Block a user