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,

You can try the External Annotations feature.

Storing annotations in the source code is not always convenient. For example, if you work on a project in a team where everybody uses different IDEs, if you work with library classes, or if you want to keep your code free from annotations, you can use external annotations.

0

Please sign in to leave a comment.