I want to improve my Android projects with Nullness annotations. I read that with the Checker Framework the @NonNull
annotation is rarely written, because it is the default. This leads to much cleaner code since you only need to annotate the (hopefully) few types which are @Nullable
.
Is it possible to set up Android Studio such that @NonNull
is the default type?
I found this answer, but it seems overly complicated and it only does the parameters, so no return types and no fields.