I have a line of code that may have a null pointer when accessing a variable, so idea has a warning.
I can turn off this warning by adding comments @ SuppressWarnings ("all")
to the method. But I don"t want to turn off all the other warnings. So I want to know which keywords are used specifically for null pointers?
I tried @ SuppressWarnings ("null")
to no avail. At the same time, I also tried all these to have no effect
@SuppressWarnings(value = {
"boxing",
"cast",
"dep-ann",
"deprecation",
"fallthrough",
"finally",
"hiding",
"incomplete-switch",
"nls",
"null",
"rawtypes",
"restriction",
"serial",
"finally",
"static-access",
"synthetic-access",
"unchecked",
"unqualified-field-access",
"unused",
})