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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/spec/v2.0.0.html).

## Unreleased - 2021-??-??
### Fixed
- Fixed immutable java.lang.Class as being flagged as EI ([#1695](https://github.com/spotbugs/spotbugs/pull/1695))

## 4.4.1 - 2021-09-07
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MutableClasses {
private static final Set<String> KNOWN_IMMUTABLE_CLASSES = new HashSet<>(Arrays.asList(
"java.lang.String", "java.lang.Integer", "java.lang.Byte", "java.lang.Character",
"java.lang.Short", "java.lang.Boolean", "java.lang.Long", "java.lang.Double",
"java.lang.Float", "java.lang.StackTraceElement", "java.math.BigInteger",
"java.lang.Float", "java.lang.StackTraceElement", "java.lang.Class", "java.math.BigInteger",
"java.math.Decimal", "java.io.File", "java.awt.Font", "java.awt.BasicStroke",
"java.awt.Color", "java.awt.GradientPaint", "java.awt.LinearGradientPaint",
"java.awt.RadialGradientPaint", "java.Cursor.", "java.util.UUID", "java.net.URL",
Expand Down