mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Update KotlinPoet to 1.3.0 (#915)
* Update to KotlinPoet 1.3.0 * Add hotwords test case * Use %N for toJson parameter names to ensure escaping
This commit is contained in:
@@ -332,7 +332,7 @@ internal class AdapterGenerator(
|
||||
result.addStatement("%N.beginObject()", writerParam)
|
||||
nonTransientProperties.forEach { property ->
|
||||
result.addStatement("%N.name(%S)", writerParam, property.jsonName)
|
||||
result.addStatement("%N.toJson(%N, %N.%L)",
|
||||
result.addStatement("%N.toJson(%N, %N.%N)",
|
||||
nameAllocator[property.delegateKey], writerParam, valueParam, property.name)
|
||||
}
|
||||
result.addStatement("%N.endObject()", writerParam)
|
||||
|
Reference in New Issue
Block a user