]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Update spotbugs
authorSimon Steiner <ssteiner@apache.org>
Tue, 22 Oct 2024 10:42:21 +0000 (11:42 +0100)
committerSimon Steiner <ssteiner@apache.org>
Tue, 22 Oct 2024 10:42:21 +0000 (11:42 +0100)
.github/workflows/maven.yml
fop-core/src/tools/resources/findbugs/exclusions.xml
fop-sandbox/pom.xml
pom.xml

index 2b9e0b7601c9c4cfdf75573cd959a5c9c9a7bc91..d5e426590b57669e6a5dbc4c85262a8fc2616803 100644 (file)
@@ -17,7 +17,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        jdk: ['8', '11', '17', '21']
+        jdk: ['8', '11', '17', '21', '23']
         os: [ubuntu-latest, windows-latest]
 
     steps:
@@ -30,26 +30,6 @@ jobs:
         cache: maven
     - name: Build with Maven
       run: mvn -B package checkstyle:check spotbugs:check --file pom.xml
-      
-  build_nospotbugs:
-    name: Test with Java ${{ matrix.jdk }} ${{ matrix.os }}
-    runs-on: ${{ matrix.os }}
-    strategy:
-      fail-fast: false
-      matrix:
-        jdk: ['23']
-        os: [ubuntu-latest, windows-latest]
-
-    steps:
-    - uses: actions/checkout@v4
-    - name: Set up JDK ${{ matrix.jdk }}
-      uses: actions/setup-java@v3
-      with:
-        java-version: ${{ matrix.jdk }}
-        distribution: 'temurin'
-        cache: maven
-    - name: Build with Maven
-      run: mvn -B package checkstyle:check --file pom.xml      
 
     # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
     #- name: Update dependency graph
index c502e4b722e7ccb3bf2f21beb1f60565e56cbffb..a0ff65e68d48006c427b8f46edbdd0e4c937c92b 100644 (file)
   <Match>
     <Bug pattern="MS_EXPOSE_REP"/>
   </Match>
+  <Match>
+    <Bug pattern="CT_CONSTRUCTOR_THROW,AA_ASSERTION_OF_ARGUMENTS,SING_SINGLETON_GETTER_NOT_SYNCHRONIZED,URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD,UWF_UNWRITTEN_FIELD,UUF_UNUSED_FIELD,UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD,SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR,UWF_NULL_FIELD,SS_SHOULD_BE_STATIC,PA_PUBLIC_PRIMITIVE_ATTRIBUTE,UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD,NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD,MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT"/>
+  </Match>  
 
   <!-- Bug in findbugs? -->
   <Match>
index 6a77e93bbe42315a5d9cde470f283bf3eb69cf4b..c913278211f97f7675dcf330ee1d639078240065 100644 (file)
         <artifactId>spotbugs-maven-plugin</artifactId>
         <version>${findbugs.plugin.version}</version>
         <configuration>
-          <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
+          <excludeFilterFile>../fop-core/src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
           <effort>Max</effort>
           <threshold>Low</threshold>
         </configuration>
diff --git a/pom.xml b/pom.xml
index b21a8c17cb678ff9e47158cdd27f95733b6fb4a6..119c07a0416d2593025188c61be7a763b05da70b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
     <commons.logging.version>1.3.0</commons.logging.version>
     <compiler.plugin.version>3.11.0</compiler.plugin.version>
     <exec.plugin.version>1.4.0</exec.plugin.version>
-    <findbugs.plugin.version>4.7.3.6</findbugs.plugin.version>
+    <findbugs.plugin.version>4.8.4.0</findbugs.plugin.version>
     <jar.plugin.version>3.1.1</jar.plugin.version>
     <java.version>8</java.version>
     <junit.version>4.13.2</junit.version>