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

Disable adding of @Nullable annotation

$
0
0

Hi,

 

Is there a way to disable the adding of @Nullable annotations? We use Guava, and don't want the noise we get from the @Nullable annotation every time we add an anonymous Function/Predicate,

 

e.g. Intellij generates this:

 

        return new Predicate<String>() {

            @Override

            public boolean apply(@javax.annotation.Nullable String input) {

                return input.isEmpty();

            }

        };

 

which doesn't compile for us as we don't have annotations.jar in our project (and don't particularly want it), and adds unnecessary noise

 

Cheers,

 

Jim


Viewing all articles
Browse latest Browse all 5661


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