@Nullable and @NotNull Annotations in IntelliJ

Every time I have to configure a new instance of IntelliJ I have to hunt for these settings to ensure that inspections catch possible NPEs to code annotated with @NotNull, so I'm  writing the steps here,

The inspection is under Java -> Probable bugs -> Constant conditions & exceptions.


You will also probably need to add the javax validation annotations, which can be done by clicking Configure annotations.


Post a Comment

Popular posts from this blog

Fixing OpenVPN "Authenticate/Decrypt packet error: cipher final failed"

MinHash for dummies

Exporting from MySQL to H2