Use the adapter lookup hint API in the Kotlin reflection adapter.
This commit is contained in:
parent
e0cdcd4ff8
commit
05cfb77430
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class KotlinJsonAdapterFactory : JsonAdapter.Factory {
|
|||
val name = jsonAnnotation?.name ?: property.name
|
||||
val resolvedPropertyType = resolve(type, rawType, property.returnType.javaType)
|
||||
val adapter = moshi.adapter<Any>(
|
||||
resolvedPropertyType, Util.jsonAnnotations(allAnnotations.toTypedArray()))
|
||||
resolvedPropertyType, Util.jsonAnnotations(allAnnotations.toTypedArray()), property.name)
|
||||
|
||||
bindingsByName[property.name] = KotlinJsonAdapter.Binding(name, adapter,
|
||||
property as KProperty1<Any, Any?>, parameter)
|
||||
|
|
Loading…
Reference in a new issue