public static Class < ? > resolveParameterType ( MethodParameter methodParam , Class clazz ) { Type genericType = getTargetType ( methodParam ) ; Preconditions . checkNotNull ( clazz , "Class must not be null" ) ; Map < TypeVariable , Type > typeVariableMap = getTypeVariableMap ( clazz ) ; Type rawType = getRawType ( genericType , typeVariableMap ) ; Class result = ( rawType instanceof Class ? ( Class ) rawType : methodParam . getParameterType ( ) ) ; methodParam . setParameterType ( result ) ; methodParam . typeVariableMap = typeVariableMap ; return result ; }
Determine the target type for the given generic parameter type .