• Andy Wilkinson's avatar
    Consider relaxed variants of target name when filtering property names · e203a689
    Andy Wilkinson authored
    Previously, when ignoreUnknownFields was false and property names were
    being filtered based on whether or not they begin with the target name,
    relaxed variants of the target name were not considered. This resulted
    in different delimiters resulting in a non-match. For example, the
    property ENV_FOO_NAME would be filtered out when the target name
    was env.foo.
    
    This commit updates PropertiesConfigurationFactory to pass all of the
    relaxed variants for the target name to the matcher. For the example
    above one of those variants will be env_foo which matches ENV_FOO_NAME
    due to the matching delimiter.
    
    PropertiesConfigurationFactory was already creating a RelaxedNames
    instance for the target name. The code has been reworked a little to
    allow these relaxed names to be reused, thereby avoiding the cost of
    computing all of the relaxed variants of the target name a second time.
    
    Closes gh-4775
    e203a689
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...