Adjust expected IdentityHashMap sizes in ClassUtils
Proposed change aimed to keep coherence between variable declaration and static initialization code, which stores 9 values, not 8, in these two maps. Closes gh-27016
This commit is contained in:
parent
821ecb4cfd
commit
950b183715
|
@ -88,13 +88,13 @@ public abstract class ClassUtils {
|
||||||
* Map with primitive wrapper type as key and corresponding primitive
|
* Map with primitive wrapper type as key and corresponding primitive
|
||||||
* type as value, for example: Integer.class -> int.class.
|
* type as value, for example: Integer.class -> int.class.
|
||||||
*/
|
*/
|
||||||
private static final Map<Class<?>, Class<?>> primitiveWrapperTypeMap = new IdentityHashMap<>(8);
|
private static final Map<Class<?>, Class<?>> primitiveWrapperTypeMap = new IdentityHashMap<>(9);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map with primitive type as key and corresponding wrapper
|
* Map with primitive type as key and corresponding wrapper
|
||||||
* type as value, for example: int.class -> Integer.class.
|
* type as value, for example: int.class -> Integer.class.
|
||||||
*/
|
*/
|
||||||
private static final Map<Class<?>, Class<?>> primitiveTypeToWrapperMap = new IdentityHashMap<>(8);
|
private static final Map<Class<?>, Class<?>> primitiveTypeToWrapperMap = new IdentityHashMap<>(9);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map with primitive type name as key and corresponding primitive
|
* Map with primitive type name as key and corresponding primitive
|
||||||
|
|
Loading…
Reference in New Issue