Skip to content

build(deps): Upgrade SpotBugs to 4.9.3#19576

Open
amaechler wants to merge 3 commits into
apache:masterfrom
amaechler:spotbugs-upgrade
Open

build(deps): Upgrade SpotBugs to 4.9.3#19576
amaechler wants to merge 3 commits into
apache:masterfrom
amaechler:spotbugs-upgrade

Conversation

@amaechler

Copy link
Copy Markdown
Contributor

Fixes #18373.

I came across @kgyrtkirk's issue above (#18373) which was auto-closed. Addressing the few spotbug warnings was straight-forward, especially with Claude doing all the work. This PR removes the pin so the plugin's matching default, 4.9.3, is used.

SpotBugs 4.9 ships some new "detectors". Running mvn spotbugs:check over all modules produced 17 new findings, handled as follows:

  • Excluded the new AT_* atomicity patterns in spotbugs-exclude.xml, alongside the already-excluded AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION. The flagged sites rely on external synchronization.
  • Excluded HSM_HIDING_METHOD. InvalidSqlInput hides the static InvalidInput.exception() factory methods by design.
  • Removed two @SuppressFBWarnings annotations that the new UselessSuppressionDetector reports as unnecessary.

This PR has:

  • been self-reviewed.

@amaechler amaechler changed the title Upgrade SpotBugs to 4.9.3 build(deps): Upgrade SpotBugs to 4.9.3 Jun 11, 2026

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the code for correctness, edge cases, concurrency, and integration risks; no issues found.

Reviewed 4 of 4 changed files.


This is an automated review by Codex GPT-5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Really upgrade spotbugs

2 participants