Skip to content

False positive SA_LOCAL_SELF_COMPARISON when using instanceof pattern matching#1435

Merged
KengoTODA merged 11 commits into
masterfrom
schosin-instanceof-pattern-matching-false-positive
Mar 1, 2021
Merged

False positive SA_LOCAL_SELF_COMPARISON when using instanceof pattern matching#1435
KengoTODA merged 11 commits into
masterfrom
schosin-instanceof-pattern-matching-false-positive

Conversation

@KengoTODA

@KengoTODA KengoTODA commented Feb 18, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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

@iloveeclipse

Copy link
Copy Markdown
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

KengoTODA commented Feb 22, 2021

Copy link
Copy Markdown
Member Author

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
@sonarqubecloud

Copy link
Copy Markdown

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.

4 participants