You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ma...@apache.org on 2022/10/19 09:42:05 UTC
[kafka] 01/01: MINOR: Upgrade spotbugs dependency
This is an automated email from the ASF dual-hosted git repository.
manikumar pushed a commit to branch spotbugs
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit f32913ab227cc01a358f0bc783340bd2454a7f21
Author: Manikumar Reddy <ma...@gmail.com>
AuthorDate: Wed Oct 19 15:11:05 2022 +0530
MINOR: Upgrade spotbugs dependency
---
gradle/dependencies.gradle | 2 +-
gradle/spotbugs-exclude.xml | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
index 4d53943a4d..1dfc68d528 100644
--- a/gradle/dependencies.gradle
+++ b/gradle/dependencies.gradle
@@ -120,7 +120,7 @@ versions += [
scoverage: "1.4.11",
slf4j: "1.7.36",
snappy: "1.1.8.4",
- spotbugs: "4.2.2",
+ spotbugs: "4.7.3",
swaggerAnnotations: "2.2.0",
swaggerJaxrs2: "2.2.0",
zinc: "1.6.1",
diff --git a/gradle/spotbugs-exclude.xml b/gradle/spotbugs-exclude.xml
index 3ad4f97356..47932a1313 100644
--- a/gradle/spotbugs-exclude.xml
+++ b/gradle/spotbugs-exclude.xml
@@ -28,8 +28,10 @@ For a detailed description of spotbugs bug categories, see https://spotbugs.read
<!-- Disable warnings about mutable objects and the use of public fields.
EI_EXPOSE_REP: May expose internal representation by returning reference to mutable object
EI_EXPOSE_REP2: May expose internal representation by incorporating reference to mutable object
- MS_PKGPROTECT: Field should be package protected -->
- <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,MS_PKGPROTECT"/>
+ MS_PKGPROTECT: Field should be package protected
+ MS_EXPOSE_REP: Public static method may expose internal representation by returning array
+ EI_EXPOSE_STATIC_REP2: May expose internal static state by storing a mutable object into a static field -->
+ <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,MS_PKGPROTECT,EI_EXPOSE_STATIC_REP2,MS_EXPOSE_REP"/>
</Match>
<Match>
@@ -90,6 +92,8 @@ For a detailed description of spotbugs bug categories, see https://spotbugs.read
<Bug pattern="MS_CANNOT_BE_FINAL"/>
<Bug pattern="IC_INIT_CIRCULARITY"/>
<Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR"/>
+ <Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
+ <Bug pattern="SSD_DO_NOT_USE_INSTANCE_LOCK_ON_SHARED_STATIC_DATA"/>
</Or>
</Match>