Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
build:

strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
jdk: [21, 25]
Expand Down
10 changes: 2 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,6 @@
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>

<!-- Test Dependencies for architecture test of JSR 305 annotations usage -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -646,6 +638,8 @@
NullAway configuration:
--> -XepOpt:NullAway:AnnotatedPackages=edu.hm.hafner <!--
Disabled ErrorProne rule:
--> -Xep:SuppressWarningsWithoutExplanation:OFF <!--
Disabled ErrorProne rule:
--> -Xep:AddNullMarkedToPackageInfo:OFF <!--
Disabled ErrorProne rule:
--> -Xep:PreferredInterfaceType:OFF <!--
Expand Down
13 changes: 7 additions & 6 deletions src/main/java/edu/hm/hafner/util/Ensure.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package edu.hm.hafner.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Formatter;
import java.util.List;

import com.google.errorprone.annotations.FormatMethod;

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

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Formatter;
import java.util.List;

/**
* Provides several helper methods to validate method arguments and class invariants, thus supporting the design by
* contract concept (DBC).
Expand Down Expand Up @@ -510,6 +510,7 @@ public static class ObjectCondition<T> {
* @param value
* value of the condition
*/
@SuppressWarnings("ExplicitArrayForVarargs")
public ObjectCondition(@CheckForNull final T value) {
this(value, new Object[0]);
}
Expand Down
Loading