From 98d798dbe4aff32cc48c28a0c231717cede52d96 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 28 Feb 2011 17:09:09 +0000 Subject: [PATCH] =?UTF-8?q?SPR-8005=20-=20Made=20GenericTypeResolver.getTy?= =?UTF-8?q?peVariableMap(=E2=80=A6)=20and=20resolvetype(=E2=80=A6)=20publi?= =?UTF-8?q?c.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../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 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);