Skip to content

Commit

Permalink
LPS-127022 Hugo SF, can you revert this? SF should have allowed this …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
brianchandotcom committed Apr 24, 2021
1 parent 28c88e5 commit 5915b17
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -34,14 +34,13 @@ public static Class<?> getGenericClass(Class<?> clazz, int index) {
ParameterizedType parameterizedType =
(ParameterizedType)genericInterfaceType;

Type[] actualArgumentTypes =
parameterizedType.getActualTypeArguments();
Type[] types = parameterizedType.getActualTypeArguments();

if (index >= actualArgumentTypes.length) {
if (index >= types.length) {
return Object.class;
}

return (Class<?>)actualArgumentTypes[index];
return (Class<?>)types[index];
}
}

Expand Down

0 comments on commit 5915b17

Please sign in to comment.