Sonarqube is reporting false findbugs issues on kotlin

  • Developer Edition
  • Version 8.5 (build 37579)
  • LGPL v3

I am getting redundant null check error for my code. I do not have put any null check.

dialog.setTitle(getString(R.string.please_wait))

Style - Redundant nullcheck of value known to be non-null
Code Smell
Info
style
Available Since
Apr 29, 2020
FindBugs (Java)
Constant/issue: 30min
This method contains a redundant check of a known non-null value against the constant null.

Again another issue that I am getting is ** Performance - Method needlessly boxes a boolean constant**
val batteryLevelGood: MutableLiveData<Boolean> = MutableLiveData()
if (viewModel.batteryLevelGood.value == false){// some code}

Can anyone help with this?

Hi,

You really need to take this up with the developers of that plugin, probably by raising an issue directly on that project.

 
HTH,
Ann

Sure.

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