For Java that can either break nullability or requ...
# rx
a
For Java that can either break nullability or require cascade changes to many types (imagine you have field
@NonNull User
) so you have two options: 1. Use
null
and make it
@Nullable
. 2. Add
User.NULL
which can require same changes to types used in
User
fields. Good thing is that in Kotlin we have sealed classes which solves that more easily and in a more typesafe manner.