Please provide
- Operating system:Windows 10
- IDE name and flavor/env: VS code
- SonarLint plugin version:v3.4.1
I’m getting S1125 for a code smell:
MyVO vo;
public boolean is() {
return vo == null ? false : vo.is();
}
Remove the unnecessary boolean literal.sonarlint(java:S1125)
But when choosing Quick Fix → SonarLint:Simplify the expression
it return invalid java syntax:
return !vo == null && vo.is();