Polishing

This commit is contained in:
Sam Brannen
2023-09-03 16:50:14 +02:00
parent 759e3d4aa6
commit 7882d265c6
4 changed files with 31 additions and 10 deletions

View File

@@ -674,9 +674,9 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
private void registerRuntimeHints(RuntimeHints hints) {
for (PropertySourceDescriptor descriptor : this.descriptors) {
Class<?> factory = descriptor.propertySourceFactory();
if (factory != null) {
hints.reflection().registerType(factory, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
Class<?> factoryClass = descriptor.propertySourceFactory();
if (factoryClass != null) {
hints.reflection().registerType(factoryClass, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
}
for (String location : descriptor.locations()) {
Resource resource = this.resourceResolver.apply(location);