FasterXML / java-classmate

Library for introspecting generic type information of types, member/static methods, fields. Especially useful for POJO/Bean introspection.
http://fasterxml.com
Apache License 2.0
258 stars 42 forks source link

is there anyway for build a ResolvedType binded with a Type like List<List<String>>? #49

Closed Frodez closed 4 years ago

Frodez commented 4 years ago

I need the java-classmate to build models for swagger, and there are some types like List\<List\<T>> in my project. But I don't know how to resolve it by TypeResolver.

I tried to use the TypeResolver.resolve(Type type, Type... typeParameters), but it failed.

I tried to use the TypeBindings.create(Class\<?> erasedType, List\<ResolvedType> typeList) and TypeResolver.resolve(TypeBindings typeBindings, Type jdkType), and it failed again.

is there anyway for build a ResolvedType binded with a Type like List\<List\<T>>?