deps: bump com.github.spotbugs:spotbugs-annotations from 4.9.3 to 4.9.4 #17

Closed
dependabot[bot] wants to merge 1 commits from dependabot/gradle/main/com.github.spotbugs-spotbugs-annotations-4.9.4 into main
dependabot[bot] commented 2025-08-11 09:36:37 +00:00 (Migrated from github.com)

Bumps com.github.spotbugs:spotbugs-annotations from 4.9.3 to 4.9.4.

Release notes

Sourced from com.github.spotbugs:spotbugs-annotations's releases.

SpotBugs 4.9.4

CHANGELOG

CHECKSUM

file checksum (sha256)
note: The checksums were not produced here due to change with gradle 9 when we published. This is subsequently fixed for next releases.
Changelog

Sourced from com.github.spotbugs:spotbugs-annotations's changelog.

4.9.4 - 2025-08-07

Changed

  • AnnotationMatcher can now ignore bugs if annotation is also applied on methods or fields. Previously only annotations on classes were considered.
  • Add relevant CWE ids to bugs and refer the CWEs in the bug messages (#3354).
  • Replace LOCAL_VARIABLE_UNKNOWN with exact method name for NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE (#3485)

Fixed

  • Widen main method recognition according to JEP 445. (#3371)
  • Do not report US_USELESS_SUPPRESSION_ON_* on methods, fields, parameters, packages or classes with an *.Generated annotation with retention >= class (#3350)(#3409)
  • Rewrite some member in ResourceValueFrame.java to Enum (#2061)
  • Ignore non-interpreted text when looking for FS_BAD_DATE_FORMAT_FLAG_COMBO (#3387)
  • Fix IllegalArgumentException thrown from FindNoSideEffectMethods detector (#3320)
  • Do not report RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT when part of a Mockito doAnswer(), doCallRealMethod(), doNothing(), doThrow() or doReturn() call (#3334)
  • Fix CT_CONSTRUCTOR_THROW false positive with public and private constructors in specific order of methods (#3417)
  • Fix AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE, AT_NONATOMIC_64BIT_PRIMITIVE and AT_STALE_THREAD_WRITE_OF_PRIMITIVE FP when the relevant code is in private method, which is only called with proper synchronization (#3428)
  • Do not report RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT when part of a BDDMockito call (#3441)
  • Fix AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE when field of a local variable is set. (#3459)
  • Fix AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE FP when there was no compound operation (#3363)
  • Fix NM_FIELD_NAMING_CONVENTION crash in the TestASM detector (#3489)
  • Do not report UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR for fields initialized in JUnit 3/4 setUp() method. (#3169)
  • Fix US_USELESS_SUPPRESSION_ON_FIELD/UUF_UNUSED_FIELD false positive (#3496)
  • Make the osgi manifest of the annotations jar Java 8 compatible (#3498) (#3500)
  • TextUICommandLine supports all options encoded in Eclipse preferences file (#3520)
  • Unnecessary suppressions fix for records headers (#3471)
  • Dead store fix when switch case contains loops (#3530) (#3449)
  • Consider PUTFIELD and PUTSTATIC when looking for assertions with side effects (#3463)
  • Detect cases when equals() unconditionally returns true or false (#3528)
  • Do not report that an Iterator does not throw NoSuchElementException when hasNext() returns true (#3501)
  • Detect random value cast to int when stored in temporary variable (#3461)
  • Look for interfaces default methods when searching uncalled private methods (#1988)
  • Fixed field self assignment false positive (#2258)
  • Fixed DMI_INVOKING_TOSTRING_ON_ARRAY on newer JDK (#1147)
  • Fix NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE false positive with Objects.requireNonNull (#2965) (#3573)
  • Track inner classes access methods to correctly report the bugs (#2029)
  • SF_SWITCH_NO_DEFAULT false positive fix (#1148) (#3572)

Added

  • Added the unnecessary annotation to the US_USELESS_SUPPRESSION_ON_* messages (#3395)
  • Multi-threaded code checks can be skipped with @NotThreadSafe (#3390)
  • New bug type CWO_CLOSED_WITHOUT_OPENED for locks that might be released without even being acquired. (See SEI CERT rule LCK08-J) (#2055)
    • Breaking change: changed values and new items in ResourceValueFrame.
  • Inline access method for method. (#3481)
  • Added DMI_MISLEADING_SUBSTRING for calling subString(0) on a StringBuffer/StringBuilder (#1928)

Signing

  • Signing for Eclipse plugin has been removed at the current time due to signing keys being expired. The expired key produced a warning during install, the same is true without signing.
Commits
  • 014b0ee release v4.9.4
  • 0c0f125 build: Adjustments to the tag checking
  • 788524b prepare for next release
  • 44656f0 release v4.9.4
  • da2f64d build: Make sure check is against origin/master not master
  • 0db0852 prepare for next release
  • 7ecaa15 release v4.9.4
  • a2845af build: Remove space in curl
  • b433c57 build: Disable parallel builds for now
  • a4e906f build: Cleanup release action to correctly work
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [com.github.spotbugs:spotbugs-annotations](https://github.com/spotbugs/spotbugs) from 4.9.3 to 4.9.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/spotbugs/spotbugs/releases">com.github.spotbugs:spotbugs-annotations's releases</a>.</em></p> <blockquote> <h2>SpotBugs 4.9.4</h2> <h3>CHANGELOG</h3> <ul> <li><a href="https://github.com/spotbugs/spotbugs/blob/4.9.4/CHANGELOG.md">https://github.com/spotbugs/spotbugs/blob/4.9.4/CHANGELOG.md</a></li> </ul> <h3>CHECKSUM</h3> <table> <thead> <tr> <th>file</th> <th>checksum (sha256)</th> </tr> </thead> <tbody> <tr> <td>note: The checksums were not produced here due to change with gradle 9 when we published. This is subsequently fixed for next releases.</td> <td></td> </tr> </tbody> </table> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md">com.github.spotbugs:spotbugs-annotations's changelog</a>.</em></p> <blockquote> <h2>4.9.4 - 2025-08-07</h2> <h3>Changed</h3> <ul> <li><code>AnnotationMatcher</code> can now ignore bugs if annotation is also applied on methods or fields. Previously only annotations on classes were considered.</li> <li>Add relevant CWE ids to bugs and refer the CWEs in the bug messages (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3354">#3354</a>).</li> <li>Replace <code>LOCAL_VARIABLE_UNKNOWN</code> with exact method name for <code>NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE</code> (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3485">#3485</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Widen main method recognition according to <a href="https://openjdk.org/jeps/445">JEP 445</a>. (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3371">#3371</a>)</li> <li>Do not report <code>US_USELESS_SUPPRESSION_ON_*</code> on methods, fields, parameters, packages or classes with an <code>*.Generated</code> annotation with retention &gt;= class (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3350">#3350</a>)(<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3409">#3409</a>)</li> <li>Rewrite some member in <code>ResourceValueFrame.java</code> to Enum (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/2061">#2061</a>)</li> <li>Ignore non-interpreted text when looking for <code>FS_BAD_DATE_FORMAT_FLAG_COMBO</code> (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3387">#3387</a>)</li> <li>Fix IllegalArgumentException thrown from <code>FindNoSideEffectMethods</code> detector (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3320">#3320</a>)</li> <li>Do not report <code>RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT</code> when part of a Mockito <code>doAnswer()</code>, <code>doCallRealMethod()</code>, <code>doNothing()</code>, <code>doThrow()</code> or <code>doReturn()</code> call (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3334">#3334</a>)</li> <li>Fix <code>CT_CONSTRUCTOR_THROW</code> false positive with public and private constructors in specific order of methods (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3417">#3417</a>)</li> <li>Fix <code>AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE</code>, <code>AT_NONATOMIC_64BIT_PRIMITIVE</code> and <code>AT_STALE_THREAD_WRITE_OF_PRIMITIVE</code> FP when the relevant code is in private method, which is only called with proper synchronization (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3428">#3428</a>)</li> <li>Do not report <code>RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT</code> when part of a BDDMockito call (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3441">#3441</a>)</li> <li>Fix <code>AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE</code> when field of a local variable is set. (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3459">#3459</a>)</li> <li>Fix <code>AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE</code> FP when there was no compound operation (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3363">#3363</a>)</li> <li>Fix <code>NM_FIELD_NAMING_CONVENTION</code> crash in the TestASM detector (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3489">#3489</a>)</li> <li>Do not report <code>UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR</code> for fields initialized in JUnit 3/4 <code>setUp()</code> method. (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3169">#3169</a>)</li> <li>Fix <code>US_USELESS_SUPPRESSION_ON_FIELD</code>/<code>UUF_UNUSED_FIELD</code> false positive (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3496">#3496</a>)</li> <li>Make the osgi manifest of the annotations jar Java 8 compatible (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3498">#3498</a>) (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/3500">#3500</a>)</li> <li><code>TextUICommandLine</code> supports all options encoded in Eclipse preferences file (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3520">#3520</a>)</li> <li>Unnecessary suppressions fix for records headers (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3471">#3471</a>)</li> <li>Dead store fix when switch case contains loops (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3530">#3530</a>) (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3449">#3449</a>)</li> <li>Consider PUTFIELD and PUTSTATIC when looking for assertions with side effects (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3463">#3463</a>)</li> <li>Detect cases when equals() unconditionally returns true or false (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3528">#3528</a>)</li> <li>Do not report that an Iterator does not throw <code>NoSuchElementException</code> when <code>hasNext()</code> returns true (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3501">#3501</a>)</li> <li>Detect random value cast to int when stored in temporary variable (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3461">#3461</a>)</li> <li>Look for interfaces default methods when searching uncalled private methods (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/1988">#1988</a>)</li> <li>Fixed field self assignment false positive (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/2258">#2258</a>)</li> <li>Fixed <code>DMI_INVOKING_TOSTRING_ON_ARRAY</code> on newer JDK (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/1147">#1147</a>)</li> <li>Fix <code>NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE</code> false positive with <code>Objects.requireNonNull</code> (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/2965">#2965</a>) (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3573">#3573</a>)</li> <li>Track inner classes access methods to correctly report the bugs (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/2029">#2029</a>)</li> <li><code>SF_SWITCH_NO_DEFAULT</code> false positive fix (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/1148">#1148</a>) (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3572">#3572</a>)</li> </ul> <h3>Added</h3> <ul> <li>Added the unnecessary annotation to the <code>US_USELESS_SUPPRESSION_ON_*</code> messages (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3395">#3395</a>)</li> <li>Multi-threaded code checks can be skipped with <code>@NotThreadSafe</code> (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3390">#3390</a>)</li> <li>New bug type <code>CWO_CLOSED_WITHOUT_OPENED</code> for locks that might be released without even being acquired. (See <a href="https://wiki.sei.cmu.edu/confluence/display/java/LCK08-J.+Ensure+actively+held+locks+are+released+on+exceptional+conditions">SEI CERT rule LCK08-J</a>) (<a href="https://redirect.github.com/spotbugs/spotbugs/pull/2055">#2055</a>) <ul> <li>Breaking change: changed values and new items in <code>ResourceValueFrame</code>.</li> </ul> </li> <li>Inline access method for method. (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/3481">#3481</a>)</li> <li>Added <code>DMI_MISLEADING_SUBSTRING</code> for calling <code>subString(0)</code> on a StringBuffer/StringBuilder (<a href="https://redirect.github.com/spotbugs/spotbugs/issues/1928">#1928</a>)</li> </ul> <h3>Signing</h3> <ul> <li>Signing for Eclipse plugin has been removed at the current time due to signing keys being expired. The expired key produced a warning during install, the same is true without signing.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/spotbugs/spotbugs/commit/014b0ee677b4f8640f10ab8309e820885af38bb5"><code>014b0ee</code></a> release v4.9.4</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/0c0f12520983113e47fbfbc3e461ee927466bce2"><code>0c0f125</code></a> build: Adjustments to the tag checking</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/788524b63f47144cb569b509e19cd90600086c2c"><code>788524b</code></a> prepare for next release</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/44656f040028e8ed3b3732a649435762cae3e340"><code>44656f0</code></a> release v4.9.4</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/da2f64d3ec29be4d0ba87799edb491a221f9f726"><code>da2f64d</code></a> build: Make sure check is against origin/master not master</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/0db0852d5f4ade3358460528bb20b0dc99cd4a17"><code>0db0852</code></a> prepare for next release</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/7ecaa153fcac2c5641cc96e2aa629ee3f9a4a85b"><code>7ecaa15</code></a> release v4.9.4</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/a2845af8d316d30269b9b11285178bce8482c8f3"><code>a2845af</code></a> build: Remove space in curl</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/b433c573f2759897d5796ad9d4de0673956b31b5"><code>b433c57</code></a> build: Disable parallel builds for now</li> <li><a href="https://github.com/spotbugs/spotbugs/commit/a4e906f00fb50a0a88de2fc2b095e5d0803b340c"><code>a4e906f</code></a> build: Cleanup release action to correctly work</li> <li>Additional commits viewable in <a href="https://github.com/spotbugs/spotbugs/compare/4.9.3...4.9.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.github.spotbugs:spotbugs-annotations&package-manager=gradle&previous-version=4.9.3&new-version=4.9.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
dependabot[bot] commented 2025-09-15 04:27:20 +00:00 (Migrated from github.com)

Superseded by #25.

Superseded by #25.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.