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

Add java.lang.Class to known immutables #1695

Merged
merged 2 commits into from Sep 12, 2021

Conversation

rovarga
Copy link
Contributor

@rovarga rovarga commented Sep 10, 2021

Storing a reference to a Class object triggers EI_EXPOSE_REP2, which is
not really fair, as java.lang.Class is really immutable.

Signed-off-by: Robert Varga robert.varga@pantheon.tech


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

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

Storing a reference to a Class object triggers EI_EXPOSE_REP2, which is
not really fair, as java.lang.Class is really immutable.

Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
ThrawnCA
ThrawnCA previously approved these changes Sep 12, 2021
@KengoTODA KengoTODA merged commit 7cc368f into spotbugs:master Sep 12, 2021
@rovarga rovarga deleted the class-is-immutable branch September 13, 2021 02:41
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.

None yet

3 participants