Spotbugs v4.4.2 Release Notes

Release Date: 2021-10-08 // 15 days ago
  • ๐Ÿ”„ Changed

    • โž• Add bug code to report in fancy-hist.xsl (#1688)
    • โฌ†๏ธ Bump Saxon-HE from 10.5 to 10.6 (#1715)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed immutable java.lang.Class as being flagged as EI (#1695)
    • Agree verb with plural subject in the description of SW_SWING_METHODS_INVOKED_IN_SWING_THREAD (#1664)
    • Wrong description of the SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS (#1664)
    • ๐Ÿ›  Fixed java.util.Locale as being flagged as EI (#1702)
    • ๐Ÿ›  Fixed reference to java.awt.Cursor which caused it to be flagged as EI (#1702)
    • Treat types with @com.google.errorprone.annotations.Immutable as immutable (#1705)
    • ๐Ÿ›  Fix annotation check for jdk.internal.ValueBased (#1706)
    • DMI_RANDOM_USED_ONLY_ONCE false positive (#1539)
    • NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR false negative (#1642)
    • Immutable java.util.regex.Pattern as being flagged as EI (#1695)
    • Resource leak in the JrtfsCodeBase (#1732)

Previous changes from v4.4.1

  • ๐Ÿ”„ Changed

    • โฌ†๏ธ Bump gson from 2.8.7 to 2.8.8 (#1658)
    • Lower ExitCodes logger to debug level (#1661)
    • ๐Ÿ›  Fixed SARIF format to be compatible with Github code scanning API requirements (#1630)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed immutable classes in java.net.* as being flagged as EI (#1653
    • Classes containing only static methods with setter-like names are no longer considered as mutable (#1601)
    • ๐Ÿ– Handle all immutable collections in the Guava library as immutable (#1601)
    • Classes annotated with @Immutable or @jdk.internal.ValueBased are considered as immutable (#1601)
    • ๐Ÿ“ฆ All classes in packages java.time and java.math are now correctly handled as immutable (#1601)