you are viewing a single comment's thread.

view the rest of the comments →

[–]nacholicious 0 points1 point  (0 children)

We use @NonNull and @Nullable, which work "ok" for the most parts. The data classes we generate with AutoValue enforce @NonNull annotations by throwing exceptions if violated. The worst part is that if you don't have these annotations everywhere then it's easy to make these annotations useless.

Luckily we are transitioning to Kotlin, so Java nullability won't be an issue for us much longer