NPE checked by StringUtils.isNotBlank still causing eclipse @NotNull warning

1.2k Views Asked by At

I am using @NotNull annotation, as you can see I am using:

StringUtils.isNotBlank()

to check NP, but I have still Eclipse warning there. If I use

oldlink != null

it wont show warning.

Does anyone know what can be problem when using apache commons StringUtils ?

NPE warning

1

There are 1 best solutions below

0
To Kra On

Looks like only this help, null check and the use of StringUtils.isNotEmpty(), even StringUtils.isNotBlank() does the same:

enter image description here