create function replaced with fake constructor function
oneofs are now have non-nullable member with Default in companion.
Is it breaking change?
Yes, as there no more 'create' function. Also, oneofs are now always not-null. If constructors were previously used, it requires migration to variant with lambda builder.
We cannot enforce consumers to use named parameters, and that's why I made private constructors. create as a function is not necessary.
What's new
create
function replaced with fake constructor functionDefault
in companion.Is it breaking change?
Yes, as there no more 'create' function. Also, oneofs are now always not-null. If constructors were previously used, it requires migration to variant with lambda builder.
We cannot enforce consumers to use named parameters, and that's why I made private constructors.
create
as a function is not necessary.