Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

What is the correct way to use @Nullable in a project?

$
0
0

IDEA keeps importing com.sun.istack.internal.Nullable when I auto-generate nullable methods.  This causes build failures when I try to build my code on some JDKs that don't support this package.

 

I would like to use @Nullable annotations, but I am confused by the options and unsure of best practices.  Of the various options, which @Nullable annotation should I use such that my project will build reliably using Maven, and how do I configure IDEA to use these annotations?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>