Polishing
This commit is contained in:
@@ -438,7 +438,7 @@ public class TypeDescriptor implements Serializable {
|
||||
return false;
|
||||
}
|
||||
TypeDescriptor other = (TypeDescriptor) obj;
|
||||
if (!ObjectUtils.nullSafeEquals(this.type, other.type)) {
|
||||
if (!ObjectUtils.nullSafeEquals(getType(), other.getType())) {
|
||||
return false;
|
||||
}
|
||||
if (getAnnotations().length != other.getAnnotations().length) {
|
||||
|
||||
@@ -68,16 +68,15 @@ public class GenericConversionService implements ConfigurableConversionService {
|
||||
private static final GenericConverter NO_OP_CONVERTER = new NoOpConverter("NO_OP");
|
||||
|
||||
/**
|
||||
* Used as a cache entry when no converter is available. This converter is never
|
||||
* returned.
|
||||
* Used as a cache entry when no converter is available.
|
||||
* This converter is never returned.
|
||||
*/
|
||||
private static final GenericConverter NO_MATCH = new NoOpConverter("NO_MATCH");
|
||||
|
||||
|
||||
private final Converters converters = new Converters();
|
||||
|
||||
private final Map<ConverterCacheKey, GenericConverter> converterCache =
|
||||
new ConcurrentReferenceHashMap<>(64);
|
||||
private final Map<ConverterCacheKey, GenericConverter> converterCache = new ConcurrentReferenceHashMap<>(64);
|
||||
|
||||
|
||||
// ConverterRegistry implementation
|
||||
@@ -489,8 +488,7 @@ public class GenericConversionService implements ConfigurableConversionService {
|
||||
|
||||
private final Set<GenericConverter> globalConverters = new LinkedHashSet<>();
|
||||
|
||||
private final Map<ConvertiblePair, ConvertersForPair> converters =
|
||||
new LinkedHashMap<>(36);
|
||||
private final Map<ConvertiblePair, ConvertersForPair> converters = new LinkedHashMap<>(36);
|
||||
|
||||
public void add(GenericConverter converter) {
|
||||
Set<ConvertiblePair> convertibleTypes = converter.getConvertibleTypes();
|
||||
|
||||
Reference in New Issue
Block a user