0

SonarQube ignores Liferay's Validator#isNotNull method. For example, this snippet

if(Validator.isNotNull(foo)){
    foo.doStuff();
}

would get mis-classified as a bug:

A "NullPointerException" could be thrown; "foo" is nullable here

Is there a way to fix this?

rath
  • 3,655
  • 1
  • 40
  • 53

0 Answers0