Polishing

This commit is contained in:
Phillip Webb 2019-03-08 17:14:41 -08:00 committed by Juergen Hoeller
parent f8121515bf
commit 9c92b21af8
2 changed files with 7 additions and 4 deletions

View File

@ -677,13 +677,16 @@ class ConfigurationClassParser {
if (className.startsWith("java")) { if (className.startsWith("java")) {
// Never use ASM for core java types // Never use ASM for core java types
try { try {
return new SourceClass(ClassUtils.forName(className, this.resourceLoader.getClassLoader())); return new SourceClass(ClassUtils.forName(className,
this.resourceLoader.getClassLoader()));
} }
catch (ClassNotFoundException ex) { catch (ClassNotFoundException ex) {
throw new NestedIOException("Failed to load class [" + className + "]", ex); throw new NestedIOException(
"Failed to load class [" + className + "]", ex);
} }
} }
return new SourceClass(this.metadataReaderFactory.getMetadataReader(className)); return new SourceClass(
this.metadataReaderFactory.getMetadataReader(className));
} }

View File

@ -1,5 +1,5 @@
/** /**
* Core support package for annotations, meta-annotations, and composed * Core support package for annotations, meta-annotations, and merged
* annotations with attribute overrides. * annotations with attribute overrides.
*/ */
@NonNullApi @NonNullApi