Browse Source

backported public signatures in GenericTypeResolver (SPR-8005)

3.0.x
Juergen Hoeller 14 years ago
parent
commit
c82dab6497
  1. 4
      org.springframework.core/src/main/java/org/springframework/core/GenericTypeResolver.java

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

@ -213,7 +213,7 @@ public abstract class GenericTypeResolver { @@ -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 <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);
}
@ -246,7 +246,7 @@ public abstract class GenericTypeResolver { @@ -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<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);

Loading…
Cancel
Save