Shared default nullable annotation

Answered

I am working on a project, where we have decided that we want to use javax.annotation for Nullable and Nonnull/NotNull. My problem is that IDEA per default wants to use org.jetbrains.annotations, which then require us to manually change every time (which we too often forget..).

Is there a way to share a selected nullable/nonnull annotation across the team?

0
1 comment

Hello Anders, 

Please clarify, do you want to change the default Nullable/NotNull annotations at code generation while applying quick fixes of i.e. @NotNull/@Nullable problems inspection (Java | Probable bugs | Nullability problems)? For this you may go to Configure Annotations list, select the needed annotation and press "tick" icon.

0

Please sign in to leave a comment.