Fix default values using Collections.emptyList causing UnsupportedOperationException during parameter binding. (#1214)

pull/1215/head
yanrongzhen 1 year ago committed by GitHub
parent 46334f8927
commit e188855997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,6 +23,7 @@ import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@ -86,7 +87,7 @@ public class BootstrapConfigProperties implements BootstrapPropertiesInterface {
/**
* Notify platforms.
*/
private List<NotifyPlatformProperties> notifyPlatforms = Collections.emptyList();
private List<NotifyPlatformProperties> notifyPlatforms = new ArrayList<>();
/**
* Check thread pool running status interval.

Loading…
Cancel
Save