Skip to content

MINOR: Upgrade Spotbugs to 4.9.1 #20294

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

Merged
merged 2 commits into from
Aug 4, 2025
Merged

MINOR: Upgrade Spotbugs to 4.9.1 #20294

merged 2 commits into from
Aug 4, 2025

Conversation

srdo
Copy link
Contributor

@srdo srdo commented Aug 2, 2025

Add exclusions for new warnings to allow this upgrade.

Reviewers: Chia-Ping Tsai [email protected]

Add exclusions for new warnings to allow this upgrade.
@github-actions github-actions bot added triage PRs from the community build Gradle build or GitHub Actions labels Aug 2, 2025
@srdo srdo mentioned this pull request Aug 2, 2025
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@srdo thanks for this patch. your idea is good to me. Some comments remain. Please take a look.

@@ -550,4 +550,173 @@ For a detailed description of spotbugs bug categories, see https://spotbugs.read
<Bug pattern="SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/>
</Match>

<Match>
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

build.gradle Outdated
@@ -37,7 +37,7 @@ plugins {
id 'org.nosphere.apache.rat' version "0.8.1"
id "io.swagger.core.v3.swagger-gradle-plugin" version "${swaggerVersion}"

id "com.github.spotbugs" version '6.0.25' apply false
id "com.github.spotbugs" version '6.2.2' apply false
Copy link
Member

Choose a reason for hiding this comment

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

the latest version is 6.2.3. could you please give it a try

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, bumped to that one

@@ -123,7 +123,7 @@ versions += [
scoverage: "2.0.11",
slf4j: "1.7.36",
snappy: "1.1.10.7",
spotbugs: "4.8.6",
spotbugs: "4.9.1",
Copy link
Member

Choose a reason for hiding this comment

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

ditto. If there is a strong reason to use 4.9.1 instead of 4.9.3, could you please add comments explaining it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a note explaining why 4.9.2 and 4.9.3 don't work.

@chia7712 chia7712 merged commit cb9e7fe into apache:trunk Aug 4, 2025
26 checks passed
@github-actions github-actions bot removed the triage PRs from the community label Aug 5, 2025
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Aug 6, 2025
Add exclusions for new warnings to allow this upgrade.

Reviewers: Chia-Ping Tsai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Gradle build or GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants