Annotate one of the constructors for a class with non-nullable parameters in Kotlin
I want to use MapStruct to create a mapper from Kotlin Code. The mapper should map to the class with non-nullable fields.
data class TargetClass(val nonNullable: String, var canBeNullable: Int? = null)
For that I would expect MapStruct use constructor:
TargetClass targetClass = new TargetClass("someString");
targetClass.setCanBeNullable = 3;
With MapStruct I believe I can do it by annotating one of the constructors with @Default annotation. I can annotate the whole with @JvmOverloads and...