@@ -345,19 +345,20 @@ public static Class<?> resolveTypeVariable(Class<?> concreteClass,
345
345
resolvedType = parameterizedClassToInspect .getActualTypeArguments ()[position ];
346
346
347
347
if (resolvedType instanceof TypeVariable <?>) {
348
- // If the currently available resolvedType is still a type variable
349
- // retrieve the position of the type variable within the type
350
- // variables of the current class, so we can look in the next
351
- // subclass for the concrete type
348
+ // If the currently available resolvedType is still a type
349
+ // variable
350
+ // retrieve the position of the type variable within the type
351
+ // variables of the current class, so we can look in the next
352
+ // subclass for the concrete type
352
353
position = getTypeVariablePosition (classToInspect ,
353
354
(TypeVariable <?>) resolvedType );
354
- } else if (resolvedType instanceof ParameterizedType ){
355
- // Since we can only want a class object, we don't
356
- // care about type arguments of the parameterized type
357
- // and just set the raw type of it as the resolved
358
- // type
359
- resolvedType = ((ParameterizedType ) resolvedType ).getRawType ();
360
- }
355
+ } else if (resolvedType instanceof ParameterizedType ) {
356
+ // Since we can only want a class object, we don't
357
+ // care about type arguments of the parameterized type
358
+ // and just set the raw type of it as the resolved
359
+ // type
360
+ resolvedType = ((ParameterizedType ) resolvedType ).getRawType ();
361
+ }
361
362
}
362
363
363
364
if (!(resolvedType instanceof Class <?>)) {
@@ -680,8 +681,9 @@ public static Method getMethod(Class<?> clazz, String methodName,
680
681
* and if it can not find that method it looks for the isFieldName method.
681
682
* If this method also can not be found, null is returned.
682
683
*
683
- * This method uses #{@link ReflectionUtil#getMethod(java.lang.Class,
684
- * java.lang.String, java.lang.Class<?>[]) } to retrieve the getter.
684
+ * This method uses #
685
+ * {@link ReflectionUtil#getMethodReturnType(Class, String, Class...)} to
686
+ * retrieve the getter.
685
687
*
686
688
* A getter must not have any parameters and must have a return type that is
687
689
* different from void.
0 commit comments