Skip to content

Commit

Permalink
Plugin updates + spotbugs fixes/ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
gmokki committed Apr 6, 2024
1 parent 2d6e0e9 commit 2ab4b48
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
3 changes: 3 additions & 0 deletions findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<Match>
<Bug pattern="THROWS_METHOD_THROWS_RUNTIMEEXCEPTION"/>
</Match>
<Match>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>
<Match>
<!--
https://github.com/spotbugs/spotbugs/issues/2040 - the new detector has too much false positives,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.nflow.engine.model.ModelObject;

@SuppressFBWarnings(value = {"URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD","UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"}, justification = "used by rest apis")
public class StoredWorkflowDefinition extends ModelObject {

public String type;
public String description;
public String onError;
public List<State> states;
public List<State> states = new ArrayList<>();
public List<Signal> supportedSignals = new ArrayList<>();

@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "serialized to database with object mapper")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.nflow.engine.workflow.definition;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import java.util.Objects;

/**
Expand All @@ -12,6 +14,7 @@ public class Mutable<T> {
/**
* The wrapped value.
*/
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "this is just a wrapper class around the single field")
public T val;

/**
Expand Down
32 changes: 29 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@
<jdk.version>17</jdk.version>
<jacocoArgLine></jacocoArgLine>
<surefire.forkcount>1C</surefire.forkcount>
<asm.version>9.7</asm.version>
<apache.cxf.version>4.0.4</apache.cxf.version>
<build-helper.version>3.5.0</build-helper.version>
<commons.lang3.version>3.14.0</commons.lang3.version>
<core-utils.version>1.4</core-utils.version>
<coveralls.version>4.3.0</coveralls.version>
<db2-jcc.version>11.5.9.0</db2-jcc.version>
<el.version>4.0.2</el.version>
<frontend-maven.version>1.13.4</frontend-maven.version>
<frontend-maven.version>1.15.0</frontend-maven.version>
<guice.version>7.0.0</guice.version>
<h2.version>2.2.224</h2.version>
<hamcrest.version>2.2</hamcrest.version>
Expand All @@ -141,7 +142,7 @@
<junit-platform.version>1.10.2</junit-platform.version>
<logback-classic.version>1.5.3</logback-classic.version>
<mariadb.version>3.3.3</mariadb.version>
<maven-assembly.version>3.6.0</maven-assembly.version>
<maven-assembly.version>3.7.1</maven-assembly.version>
<maven-clean.version>3.3.2</maven-clean.version>
<maven-compiler.version>3.13.0</maven-compiler.version>
<maven-deploy.version>3.1.1</maven-deploy.version>
Expand Down Expand Up @@ -179,7 +180,7 @@
<reflections.version>0.10.2</reflections.version>
<slf4j.version>2.0.12</slf4j.version>
<spotbugs.version>4.8.3</spotbugs.version>
<spotbugs-contrib.version>7.4.6</spotbugs-contrib.version>
<spotbugs-contrib.version>7.6.4</spotbugs-contrib.version>
<spotbugs-maven-plugin.version>4.8.3.1</spotbugs-maven-plugin.version>
<spring.version>6.0.11</spring.version>
<swagger.version>2.2.21</swagger.version>
Expand Down Expand Up @@ -313,6 +314,31 @@
<artifactId>spotbugs</artifactId>
<version>${spotbugs.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
</dependencies>
<configuration>
<xmlOutput>true</xmlOutput>
Expand Down

0 comments on commit 2ab4b48

Please sign in to comment.