tobrun/kotlin-data-compat

Improve null/non-null handling of properties in Builder

Closed this issue · 1 comments

This issue tracks improving the handling of nullability of properties. Next to the issue showcased below, there is a need to evaluate what we want out of the builder pattern and try scoping out all the different use-cases with input/output possibilities.

Current issue is that if a property is marked as nullable in the data class and we haven't provided a value, it will fail to create an instance in Builder.build() because of the double bang operator (!!) on that property when building.

closed with #16