Skip to content

Commit

Permalink
SPR-8005 - Made GenericTypeResolver.getTypeVariableMap(…) and resolve…
Browse files Browse the repository at this point in the history
…type(…) public.
  • Loading branch information
odrotbohm committed Feb 28, 2011
1 parent bc342df commit 98d798d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ else if (arg instanceof TypeVariable) {
* @param typeVariableMap the TypeVariable Map to resolved against
* @return the type if it resolves to a Class, or <code>Object.class</code> otherwise
*/
static Class resolveType(Type genericType, Map<TypeVariable, Type> typeVariableMap) {
public static Class resolveType(Type genericType, Map<TypeVariable, Type> typeVariableMap) {
Type rawType = getRawType(genericType, typeVariableMap);
return (rawType instanceof Class ? (Class) rawType : Object.class);
}
Expand Down Expand Up @@ -247,7 +247,7 @@ static Type getRawType(Type genericType, Map<TypeVariable, Type> typeVariableMap
* {@link Class} for the specified {@link Class}. Searches all super types,
* enclosing types and interfaces.
*/
static Map<TypeVariable, Type> getTypeVariableMap(Class clazz) {
public static Map<TypeVariable, Type> getTypeVariableMap(Class clazz) {
Reference<Map<TypeVariable, Type>> ref = typeVariableCache.get(clazz);
Map<TypeVariable, Type> typeVariableMap = (ref != null ? ref.get() : null);

Expand Down

0 comments on commit 98d798d

Please sign in to comment.