GenericConversionService uses ConcurrentReferenceHashMap instead of ConcurrentHashMap

Issue: SPR-13099
This commit is contained in:
Juergen Hoeller 2015-06-15 15:55:53 +02:00
parent 1c01f575c2
commit 7987f80866
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.core.ResolvableType;
import org.springframework.core.convert.ConversionException;
@ -43,6 +42,7 @@ import org.springframework.core.convert.converter.GenericConverter;
import org.springframework.core.convert.converter.GenericConverter.ConvertiblePair;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.util.ConcurrentReferenceHashMap;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
@ -89,7 +89,7 @@ public class GenericConversionService implements ConfigurableConversionService {
private final Converters converters = new Converters();
private final Map<ConverterCacheKey, GenericConverter> converterCache =
new ConcurrentHashMap<ConverterCacheKey, GenericConverter>(64);
new ConcurrentReferenceHashMap<ConverterCacheKey, GenericConverter>(64);
// ConverterRegistry implementation