diff --git a/org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java b/org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java index 211b7d4198..de2502e962 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java +++ b/org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java @@ -214,7 +214,7 @@ public abstract class GenericTypeResolver { * @param typeVariableMap the TypeVariable Map to resolved against * @return the type if it resolves to a Class, or Object.class otherwise */ - static Class resolveType(Type genericType, Map typeVariableMap) { + public static Class resolveType(Type genericType, Map typeVariableMap) { Type rawType = getRawType(genericType, typeVariableMap); return (rawType instanceof Class ? (Class) rawType : Object.class); } @@ -247,7 +247,7 @@ public abstract class GenericTypeResolver { * {@link Class} for the specified {@link Class}. Searches all super types, * enclosing types and interfaces. */ - static Map getTypeVariableMap(Class clazz) { + public static Map getTypeVariableMap(Class clazz) { Reference> ref = typeVariableCache.get(clazz); Map typeVariableMap = (ref != null ? ref.get() : null);