Join GitHub today
Generate configuration keys metadata for immutable POJOs #16071
Interesting to look at this from a metadata angle. I was wondering how we could infer default values. In a getter/setter arrangement, if you define a value with a primitive type, it gets its default value unless specified otherwise (i.e. a
With the constructor arrangement, it gets a tad more complex. If we ignore validation (
The metadata on the Java side has been improved to detect immutable types. When a
Kotlin types are not supported as kapt still exposes several limitations. I've created #16293 to follow-up and try to improve this as much as we can.