avoid using deprecated StringUtils#isEmpty method

This commit is contained in:
Gerardo Roza 2020-12-16 16:53:33 -03:00
parent 8a9c1a1911
commit 7b17a09eb7
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.isEmpty(name) ? path : name);
super(StringUtils.hasText(name) ? path : name);
try {
this.propertiesConfiguration = new PropertiesConfiguration(path);
FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();