This commit is contained in:
Redkale
2020-07-19 15:25:59 +08:00
parent a5f3adc477
commit c73fc5f266

View File

@@ -185,6 +185,9 @@ public abstract class TypeToken<T> {
}
TypeVariable tv = (TypeVariable) type;
if (tv.getBounds().length == 1) return tv.getBounds()[0];
} else if (type instanceof GenericArrayType) {
final Type rst = getGenericType(((GenericArrayType) type).getGenericComponentType(), declaringClass);
return (GenericArrayType) () -> rst;
}
if (type instanceof ParameterizedType) {
ParameterizedType pt = (ParameterizedType) type;