兼容泛型嵌套
This commit is contained in:
@@ -132,6 +132,8 @@ public abstract class TypeToken<T> {
|
|||||||
if (asts[i] == type) return atas[i];
|
if (asts[i] == type) return atas[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Type moreType = ((ParameterizedType) superType).getRawType();
|
||||||
|
if (moreType != Object.class) return getGenericType(type, moreType);
|
||||||
}
|
}
|
||||||
TypeVariable tv = (TypeVariable) type;
|
TypeVariable tv = (TypeVariable) type;
|
||||||
if (tv.getBounds().length == 1) return tv.getBounds()[0];
|
if (tv.getBounds().length == 1) return tv.getBounds()[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user