Consistent use of ClassUtils.forName instead of class.getClassLoader().loadClass

Issue: SPR-11780
This commit is contained in:
Juergen Hoeller
2014-05-15 09:56:11 +02:00
parent f651065b5e
commit 551950cdc0
4 changed files with 10 additions and 9 deletions

View File

@@ -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) {