Skip to content
New issue

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

False positive SA_LOCAL_SELF_COMPARISON when using instanceof pattern matching #1435

Merged
merged 11 commits into from
Mar 1, 2021

Conversation

KengoTODA
Copy link
Member

@KengoTODA KengoTODA commented Feb 18, 2021

Recreated from #1136 to build with the latest change.

@KengoTODA KengoTODA marked this pull request as ready for review February 20, 2021 06:57
@KengoTODA KengoTODA requested a review from a team February 20, 2021 06:57
@KengoTODA
Copy link
Member Author

Hi @spotbugs/everyone , please review this PR when you have time. Thanks in advance!

@iloveeclipse
Copy link
Member

The PR references some wrong issue #1134?
Also it seem not to have a fix, but only a test case, or it doesn't explicitly explain the problem & solution?

@KengoTODA
Copy link
Member Author

KengoTODA commented Feb 22, 2021

Good catch @iloveeclipse, it should be #1136.

Also it seem not to have a fix, but only a test case, or it doesn't explicitly explain the problem & solution?

Ah, I see. Actually it's problem only with Java 14. So when I switch to Java 15 in 51ae7ab, the test has been stable.
So I should not update the CHANGELOG because spotbugs itself has no change. I'll update.

The bug is caused by Java 14, that is outdated and not maintained any more.
In the SpotBugs side we need no update, so we should have no entry in this file.
@KengoTODA KengoTODA added 3rd party bug Bug in 3rd party code and removed bug labels Feb 22, 2021
@sonarcloud
Copy link

sonarcloud bot commented Feb 22, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party bug Bug in 3rd party code Java-14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants