Merge branch '2.5.x' into 2.6.x

Closes gh-30553
pull/30562/head
Moritz Halbritter 3 years ago
commit c54b825a82

@ -16,8 +16,8 @@
package org.springframework.boot.availability;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -38,7 +38,7 @@ import org.springframework.util.Assert;
public class ApplicationAvailabilityBean
implements ApplicationAvailability, ApplicationListener<AvailabilityChangeEvent<?>> {
private final Map<Class<? extends AvailabilityState>, AvailabilityChangeEvent<?>> events = new HashMap<>();
private final Map<Class<? extends AvailabilityState>, AvailabilityChangeEvent<?>> events = new ConcurrentHashMap<>();
private final Log logger;

Loading…
Cancel
Save