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

Improve function mutableSignature() in MutableStaticFields detector #1533

Merged
merged 1 commit into from
May 11, 2021

Conversation

baloghadamsoftware
Copy link
Contributor

@baloghadamsoftware baloghadamsoftware commented Apr 30, 2021

The current implementation of mutableSignature() is a prototype. This
patch contains an implementation which uses several heuristics to
attempt determining whether a class is mutable. Furthermore we moved
this function to the util package.


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

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

The current implementation of `mutableSignature()` is a prototype. This
patch contains an implementation which uses several heuristics to
attempt determining whether a class is mutable. Furthermore we moved
this function to the `util` package.

Change-Id: Ie8efec6b1f4eb330d8c5b2da30036e3703056a9e
@KengoTODA KengoTODA merged commit 2e09a8d into spotbugs:master May 11, 2021
gtoison added a commit to gtoison/spotbugs that referenced this pull request Aug 26, 2023
In spotbugs#1533 the MutableStaticFields was modified to warn for classes deemed
to be mutable. Previously only arrays and a few (HashTable, Date,
TimeStamp) were considered mutable. However the description for
MS_EXPOSE_REP kept only mentioning arrays
hazendaz added a commit that referenced this pull request Aug 26, 2023
… just arrays (#2535)

* fix: updated MS_EXPOSE_REP description

In #1533 the MutableStaticFields was modified to warn for classes deemed
to be mutable. Previously only arrays and a few (HashTable, Date,
TimeStamp) were considered mutable. However the description for
MS_EXPOSE_REP kept only mentioning arrays

* updated the changelog

* Update messages_fr.xml

* Update messages_fr.xml

oops that was french, fixing back

---------

Co-authored-by: Jeremy Landis <[email protected]>
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.

3 participants