Skip to content

Commit 950b183

Browse files
authored
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
1 parent 821ecb4 commit 950b183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/main/java/org/springframework/util/ClassUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ public abstract class ClassUtils {
8888
* Map with primitive wrapper type as key and corresponding primitive
8989
* type as value, for example: Integer.class -> int.class.
9090
*/
91-
private static final Map<Class<?>, Class<?>> primitiveWrapperTypeMap = new IdentityHashMap<>(8);
91+
private static final Map<Class<?>, Class<?>> primitiveWrapperTypeMap = new IdentityHashMap<>(9);
9292

9393
/**
9494
* Map with primitive type as key and corresponding wrapper
9595
* type as value, for example: int.class -> Integer.class.
9696
*/
97-
private static final Map<Class<?>, Class<?>> primitiveTypeToWrapperMap = new IdentityHashMap<>(8);
97+
private static final Map<Class<?>, Class<?>> primitiveTypeToWrapperMap = new IdentityHashMap<>(9);
9898

9999
/**
100100
* Map with primitive type name as key and corresponding primitive

0 commit comments

Comments
 (0)