mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Generated adapters should use skipName(), not nextName().
This commit is contained in:
@@ -213,7 +213,7 @@ internal class AdapterGenerator(
|
|||||||
|
|
||||||
result.beginControlFlow("-1 ->")
|
result.beginControlFlow("-1 ->")
|
||||||
result.addComment("Unknown name, skip it.")
|
result.addComment("Unknown name, skip it.")
|
||||||
result.addStatement("%N.nextName()", readerParam)
|
result.addStatement("%N.skipName()", readerParam)
|
||||||
result.addStatement("%N.skipValue()", readerParam)
|
result.addStatement("%N.skipValue()", readerParam)
|
||||||
result.endControlFlow()
|
result.endControlFlow()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user