avoid using deprecated StringUtils#isEmpty method
This commit is contained in:
parent
8a9c1a1911
commit
7b17a09eb7
@ -15,7 +15,7 @@ public class ReloadablePropertySource extends PropertySource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ReloadablePropertySource(String name, String path) {
|
public ReloadablePropertySource(String name, String path) {
|
||||||
super(StringUtils.isEmpty(name) ? path : name);
|
super(StringUtils.hasText(name) ? path : name);
|
||||||
try {
|
try {
|
||||||
this.propertiesConfiguration = new PropertiesConfiguration(path);
|
this.propertiesConfiguration = new PropertiesConfiguration(path);
|
||||||
FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();
|
FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user