mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 02:09:05 +00:00
Suppress NullAway checks in tests for Maven plugin
See gh-47263
This commit is contained in:
+2
@@ -49,6 +49,7 @@ class CommandLineBuilderTests {
|
||||
public static final String CLASS_NAME = ClassWithMainMethod.class.getName();
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("NullAway") // Maven can't deal with @Nullable arrays / varargs
|
||||
void buildWithNullJvmArgumentsIsIgnored() {
|
||||
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withJvmArguments((String[]) null).build())
|
||||
.containsExactly(CLASS_NAME);
|
||||
@@ -80,6 +81,7 @@ class CommandLineBuilderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("NullAway") // Maven can't deal with @Nullable arrays / varargs
|
||||
void buildWithNullArgumentsIsIgnored() {
|
||||
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withArguments((String[]) null).build())
|
||||
.containsExactly(CLASS_NAME);
|
||||
|
||||
Reference in New Issue
Block a user