igor.beslic
igor.beslic

Reputation: 974

Can IntelliJ IDEA show list of all violations of Nullable annotation

Is there option in IntelliJ IDEA to show list of all java source files where variable or return value of method annotated with @Nullable is used in a code?

For example, if I want to improve and update all source files with such violations I would like to see list all files (otherwise I have to open each single source and visually inspect highlighted areas)

Upvotes: 0

Views: 99

Answers (1)

LppEdd
LppEdd

Reputation: 21124

Yes, you should be able to find probable problems/bugs by running a single inspection, via

Analyze > Run inspection by name

You might then customize the inspection settings for the single execution.

enter image description here

Those are the inspections you're looking for, most probably.

enter image description here

Running the inspection "Constant conditions & exceptions returns

image

Btw, I'm an inspections maniac for these kind of things, glad to see others do so ;)

Upvotes: 1

Related Questions