sdeleuze
02/15/2018, 8:47 AM@ConfigurationProperties("foo")
class FooProperties {
lateinit var foo1: String
lateinit var foo2: String
lateinit val bar = Bar()
class Bar {
lateinit var bar1: String
lateinit var bar2: String
}
}
Czar
02/15/2018, 8:53 AM@ConfigurationProperties
in this manner for a while in a couple of my projects and didn't have problems. Looking forward to immutable data classes support, though 🙂sdeleuze
02/15/2018, 9:02 AMisto
02/25/2018, 9:23 AMval bar = Bar()
instead of lateinit val bar = Bar()
for those nested classesCzar
02/25/2018, 11:19 AMlateinit val
won't even work. only var
can be lateinit
. That's a mistype on Sébastien's part, I believe.