Skip to content

build: replace FindBugs with SpotBugs#2174

Open
arnabnandy7 wants to merge 1 commit into
googleapis:mainfrom
arnabnandy7:refactor/GH-20455-remove-or-replace-deprecated-findbugs
Open

build: replace FindBugs with SpotBugs#2174
arnabnandy7 wants to merge 1 commit into
googleapis:mainfrom
arnabnandy7:refactor/GH-20455-remove-or-replace-deprecated-findbugs

Conversation

@arnabnandy7

Copy link
Copy Markdown

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #2154 ☕️

This replaces the unsupported FindBugs engine and Maven plugin with SpotBugs while retaining the historical google-http-client-findbugs artifact ID for downstream compatibility.

The custom beta-API detector was updated for the current BCEL API while preserving its public API compatibility. Build configuration, exclusion filters, sample configuration, detector fixtures, and public Javadocs were updated accordingly.

Validation included:

  • Full Java 8 reactor verification with tests skipped
  • Clirr compatibility checks with no reported API changes
  • Checkstyle validation
  • Dependency verification confirming the obsolete FindBugs engine is no longer present
  • Detector fixture verification for BETA_CLASS_USAGE, BETA_FIELD_USAGE, and BETA_METHOD_USAGE

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7
arnabnandy7 requested a review from a team as a code owner July 18, 2026 09:39
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove or replace findbugs because out of support

1 participant