mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
JsonAdapter.Factory.create rejects the null Type.
This fails already in Types.getRawType, but a compiler error is preferable.
This commit is contained in:
@@ -148,7 +148,7 @@ internal class KotlinJsonAdapter<T>(
|
||||
}
|
||||
|
||||
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<*>? {
|
||||
if (!annotations.isEmpty()) return null
|
||||
|
||||
|
Reference in New Issue
Block a user