Merge pull request #539 from 3flex/patch-1

README: fix typo
This commit is contained in:
Jesse Wilson
2018-05-15 06:14:42 -04:00
committed by GitHub

View File

@@ -548,7 +548,7 @@ annotationProcessor 'com.squareup.moshi:moshi-kotlin-codegen:1.6.0'
If your Kotlin class has a superclass, it must also be a Kotlin class. Neither reflection or codegen If your Kotlin class has a superclass, it must also be a Kotlin class. Neither reflection or codegen
support Kotlin types with Java supertypes or Java types with Kotlin supertypes. If you need to support Kotlin types with Java supertypes or Java types with Kotlin supertypes. If you need to
convert such classes to JSON you must create a custom type adatper. convert such classes to JSON you must create a custom type adapter.
The JSON encoding of Kotlin types is the same whether using reflection or codegen. Prefer codegen The JSON encoding of Kotlin types is the same whether using reflection or codegen. Prefer codegen
for better performance and to avoid the `kotlin-reflect` dependency; prefer reflection to convert for better performance and to avoid the `kotlin-reflect` dependency; prefer reflection to convert