mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Merge pull request #335 from square/eric.0724.null_kotlin
JsonAdapter.Factory.create rejects the null Type.
This commit is contained in:
@@ -148,7 +148,7 @@ internal class KotlinJsonAdapter<T>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
class KotlinJsonAdapterFactory : JsonAdapter.Factory {
|
class KotlinJsonAdapterFactory : JsonAdapter.Factory {
|
||||||
override fun create(type: Type?, annotations: MutableSet<out Annotation>, moshi: Moshi)
|
override fun create(type: Type, annotations: MutableSet<out Annotation>, moshi: Moshi)
|
||||||
: JsonAdapter<*>? {
|
: JsonAdapter<*>? {
|
||||||
if (!annotations.isEmpty()) return null
|
if (!annotations.isEmpty()) return null
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user