@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.


Popular posts from this blog

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

MinHash for dummies

Authenticating via Kerberos with Keycloak and Windows 2008 Active Directory