Merge branch '2.6.x' into 2.7.x

Closes gh-30554
pull/30641/head
Moritz Halbritter 3 years ago
commit 98bbbc910b

@ -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