Merge pull request #10384 from rozagerardo/rozagerardo/JAVA-4134_Fix-test-in-spring-boot-properties

[JAVA-4134] Fix test in spring-boot-properties
This commit is contained in:
Loredana Crusoveanu 2021-01-04 10:14:45 +02:00 committed by GitHub
commit 1c2a87e073
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public class ReloadablePropertySource extends PropertySource {
}
public ReloadablePropertySource(String name, String path) {
super(StringUtils.hasText(name) ? path : name);
super(!StringUtils.hasText(name) ? path : name);
try {
this.propertiesConfiguration = new PropertiesConfiguration(path);
FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();