Commit 30e3cf4c authored by Madhura Bhave's avatar Madhura Bhave

Make sure property mapping exception are swallowed

parent e5f80787
...@@ -77,7 +77,8 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource { ...@@ -77,7 +77,8 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource {
Assert.notNull(propertySource, "PropertySource must not be null"); Assert.notNull(propertySource, "PropertySource must not be null");
Assert.notNull(mapper, "Mapper must not be null"); Assert.notNull(mapper, "Mapper must not be null");
this.propertySource = propertySource; this.propertySource = propertySource;
this.mapper = mapper; this.mapper = (mapper instanceof DelegatingPropertyMapper ? mapper
: new DelegatingPropertyMapper(mapper));
this.containsDescendantOf = (containsDescendantOf != null ? containsDescendantOf this.containsDescendantOf = (containsDescendantOf != null ? containsDescendantOf
: (n) -> ConfigurationPropertyState.UNKNOWN); : (n) -> ConfigurationPropertyState.UNKNOWN);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment