We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpotBugs Version: 4.4.2 Rule: ES_COMPARING_STRINGS_WITH_EQ
Hi! I find a false negative about this rule. SpotBugs should have reported a warning at line 4.
Minimal Code Sample
public boolean func() { String s1 = "str1"; final String s2 = "str2"; return s1 == s2; // should report a warning here }
Expected outcome: SpotBugs should report a violation at line 4, but doesn't. This is a false-negative.
Running SpotBugs through: [CLI]
The text was updated successfully, but these errors were encountered:
test: reproduce the reported false negative
c369ab5
refs #1764
Thanks for your report, I could reproduce this false negative. I am going to fix it as #1769.
Sorry, something went wrong.
a02cd8f
KengoTODA
Successfully merging a pull request may close this issue.
SpotBugs Version: 4.4.2
Rule: ES_COMPARING_STRINGS_WITH_EQ
Hi! I find a false negative about this rule. SpotBugs should have reported a warning at line 4.
Minimal Code Sample
Expected outcome:
SpotBugs should report a violation at line 4, but doesn't. This is a false-negative.
Running SpotBugs through: [CLI]
The text was updated successfully, but these errors were encountered: