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

Fixes issue #1313 #1337

Merged
merged 1 commit into from
Oct 16, 2020
Merged

Fixes issue #1313 #1337

merged 1 commit into from
Oct 16, 2020

Conversation

trancexpress
Copy link
Contributor

@trancexpress trancexpress commented Oct 16, 2020

fix for issue #1313, do not report volatile problems in synthetic code

With the fix for Eclipse bug 544521,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=544521, the Eclipse 4.17+
Java compiler will generate synthetic code for switch expressions.
spotbugs reports VO_VOLATILE_REFERENCE_TO_ARRAY issues in this synthetic
code.

This changes makes spotbugs ignore synthetic fields during
VO_VOLATILE_REFERENCE_TO_ARRAY analysis.


Make sure these boxes are checked before submitting your PR -- thank you!

  • Added an entry into CHANGELOG.md if you have changed SpotBugs code

fix for issue 1313, do not report volatile problems in synthetic code

With the fix for Eclipse bug 544521,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=544521, the Eclipse 4.17+
Java compiler will generate synthetic code for switch expressions.
spotbugs reports VO_VOLATILE_REFERENCE_TO_ARRAY issues in this synthetic
code.

This changes makes spotbugs ignore synthetic fields during
VO_VOLATILE_REFERENCE_TO_ARRAY analysis.
@iloveeclipse iloveeclipse self-requested a review October 16, 2020 08:08
@iloveeclipse iloveeclipse merged commit 9febd7e into spotbugs:master Oct 16, 2020
@iloveeclipse iloveeclipse linked an issue Oct 16, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings about $SWITCH_TABLE reported in Eclipse
2 participants