mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 08:29:22 +08:00
Fix code cleanups (#1441)
* Fix immutable properties It was intentionally designed the previous way * Restore limit in for loop * Another ImmutableProperties
This commit is contained in:
@@ -436,7 +436,10 @@ class GeneratedAdaptersTest {
|
||||
}
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
class ImmutableProperties(val a: Int, val b: Int)
|
||||
class ImmutableProperties(a: Int, b: Int) {
|
||||
val a = a
|
||||
val b = b
|
||||
}
|
||||
|
||||
@Test fun constructorDefaults() {
|
||||
val moshi = Moshi.Builder().build()
|
||||
|
Reference in New Issue
Block a user