From c82dab649775c67ace3482cbbf5cdfc4d2504cd9 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 1 Dec 2011 12:52:33 +0000 Subject: [PATCH] backported public signatures in GenericTypeResolver (SPR-8005) --- .../java/org/springframework/core/GenericTypeResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 95e870f306..a4c425d7f9 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 @@ -213,7 +213,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); } @@ -246,7 +246,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);