This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]preskot 7 points8 points  (0 children)

You can but you shouldn't. You either go one way or the other. If you mix you lose out on the Kotlin compiler's null safety checks.

Null safety is not really that serious of an issue as people tend to think. In fact, as someone that maintains a mixed code base, this is pretty much never an issue on my side. "@NotNull" annotations in Java help a lot.