From b683d15f77ab3bdfee87a4326e891b4b138afb65 Mon Sep 17 00:00:00 2001 From: sciencesakura Date: Fri, 6 Feb 2026 01:13:00 +0900 Subject: [PATCH] Remove dependency on spotbugs-annotations. --- config/spotbugs/exclude.xml | 9 +++++++++ core/pom.xml | 8 +++----- .../main/java/com/sciencesakura/dbsetup/csv/Import.java | 2 -- pom.xml | 6 ------ 4 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 config/spotbugs/exclude.xml diff --git a/config/spotbugs/exclude.xml b/config/spotbugs/exclude.xml new file mode 100644 index 0000000..6c25c21 --- /dev/null +++ b/config/spotbugs/exclude.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/core/pom.xml b/core/pom.xml index d3a540e..994a0b9 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -16,11 +16,6 @@ https://github.com/sciencesakura/dbsetup-csv - - com.github.spotbugs - spotbugs-annotations - true - com.ninja-squad DbSetup @@ -85,6 +80,9 @@ com.github.spotbugs spotbugs-maven-plugin + + ${project.basedir}/../config/spotbugs/exclude.xml + org.apache.felix diff --git a/core/src/main/java/com/sciencesakura/dbsetup/csv/Import.java b/core/src/main/java/com/sciencesakura/dbsetup/csv/Import.java index ed955a6..51707f2 100644 --- a/core/src/main/java/com/sciencesakura/dbsetup/csv/Import.java +++ b/core/src/main/java/com/sciencesakura/dbsetup/csv/Import.java @@ -9,7 +9,6 @@ import com.ninja_squad.dbsetup.generator.ValueGenerator; import com.ninja_squad.dbsetup.operation.Insert; import com.ninja_squad.dbsetup.operation.Operation; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; @@ -338,7 +337,6 @@ public Builder withQuote(char quote) { return this; } - @SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") private String table() { if (table != null) { return table; diff --git a/pom.xml b/pom.xml index 6584648..6b33ca1 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,6 @@ 2.4.240 13.0 5.14.2 - 4.9.8 @@ -87,11 +86,6 @@ - - com.github.spotbugs - spotbugs-annotations - ${spotbugs.version} - com.h2database h2