Skip to content

Commit c82dab6

Browse files
committed
backported public signatures in GenericTypeResolver (SPR-8005)
1 parent e6f4e16 commit c82dab6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ else if (arg instanceof TypeVariable) {
213213
* @param typeVariableMap the TypeVariable Map to resolved against
214214
* @return the type if it resolves to a Class, or <code>Object.class</code> otherwise
215215
*/
216-
static Class resolveType(Type genericType, Map<TypeVariable, Type> typeVariableMap) {
216+
public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> typeVariableMap) {
217217
Type rawType = getRawType(genericType, typeVariableMap);
218218
return (rawType instanceof Class ? (Class) rawType : Object.class);
219219
}
@@ -246,7 +246,7 @@ static Type getRawType(Type genericType, Map<TypeVariable, Type> typeVariableMap
246246
* {@link Class} for the specified {@link Class}. Searches all super types,
247247
* enclosing types and interfaces.
248248
*/
249-
static Map<TypeVariable, Type> getTypeVariableMap(Class clazz) {
249+
public static Map<TypeVariable, Type> getTypeVariableMap(Class clazz) {
250250
Reference<Map<TypeVariable, Type>> ref = typeVariableCache.get(clazz);
251251
Map<TypeVariable, Type> typeVariableMap = (ref != null ? ref.get() : null);
252252

0 commit comments

Comments
 (0)