Polishing

This commit is contained in:
Juergen Hoeller
2013-02-10 21:10:58 +01:00
parent aa576e70be
commit e9db785799
2 changed files with 7 additions and 8 deletions

View File

@@ -369,8 +369,7 @@ public abstract class GenericTypeResolver {
* all super types, enclosing types and interfaces.
*/
public static Map<TypeVariable, Type> getTypeVariableMap(Class clazz) {
Map<TypeVariable, Type> ref = typeVariableCache.get(clazz);
Map<TypeVariable, Type> typeVariableMap = (ref != null ? ref : null);
Map<TypeVariable, Type> typeVariableMap = typeVariableCache.get(clazz);
if (typeVariableMap == null) {
typeVariableMap = new HashMap<TypeVariable, Type>();