Apache Commons MapUtils.isNotEmpty Is Not Recognize By Sonar Scanning

  • SonarQube Version: 8.4 Developer Edition

  • Issues: SonarQube raised “NullPointerException could be thrown” even though MapUtils.IsNotEmpty is used for validation

  • Things have been tried: Apache Commons Jar is defined under java.lib.libraries

  • Sample Codes:

Hey @SlackOng95,

Thanks for the feedback (and thanks to @Fempter who made me realize I missed this topic), we are indeed not covering Apache Commons Collections MapUtils methods (as well as a few others) from Apache Collections.

I created the following ticket to handle them correctly: SONARJAVA-3661

Cheers,
Michael

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.