-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Conversation
Add exclusions for new warnings to allow this upgrade.
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open https://issues.apache.org/jira/browse/KAFKA-19575 to revisit them later.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Add exclusions for new warnings to allow this upgrade. Reviewers: Chia-Ping Tsai <[email protected]>
Add exclusions for new warnings to allow this upgrade.
Reviewers: Chia-Ping Tsai [email protected]