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:
Zac Sweers
2019-09-12 14:13:23 -04:00
committed by GitHub
parent 1978581b3d
commit 98092d0727
3 changed files with 8 additions and 2 deletions

View File

@@ -1223,5 +1223,11 @@ data class SmokeTestType(
val genericAlias: GenericTypeAlias = listOf("Woah")
)
// Compile only, regression test for https://github.com/square/moshi/issues/848
@JsonClass(generateAdapter = true)
data class Hotwords(
val `class`: List<String>?
)
typealias TypeAliasName = String
typealias GenericTypeAlias = List<String>