diff --git a/webauthn/spring-security-webauthn.gradle b/webauthn/spring-security-webauthn.gradle index b289714464..b5bf7f843e 100644 --- a/webauthn/spring-security-webauthn.gradle +++ b/webauthn/spring-security-webauthn.gradle @@ -1,4 +1,5 @@ plugins { + id 'compile-warnings-error' id 'security-nullability' } diff --git a/webauthn/src/test/java/org/springframework/security/web/webauthn/authentication/WebAuthnAuthenticationFilterTests.java b/webauthn/src/test/java/org/springframework/security/web/webauthn/authentication/WebAuthnAuthenticationFilterTests.java index 51a1b53d06..d1b32b05a1 100644 --- a/webauthn/src/test/java/org/springframework/security/web/webauthn/authentication/WebAuthnAuthenticationFilterTests.java +++ b/webauthn/src/test/java/org/springframework/security/web/webauthn/authentication/WebAuthnAuthenticationFilterTests.java @@ -101,6 +101,7 @@ class WebAuthnAuthenticationFilterTests { } @Test + @SuppressWarnings("removal") void setConverterWhenNullThenIllegalArgumentException() { assertThatIllegalArgumentException() .isThrownBy(() -> this.filter.setConverter((GenericHttpMessageConverter) null)); diff --git a/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/CredProtectAuthenticationExtensionsClientInputJackson2Tests.java b/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/CredProtectAuthenticationExtensionsClientInputJackson2Tests.java index dcc9521da1..bcc907bb88 100644 --- a/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/CredProtectAuthenticationExtensionsClientInputJackson2Tests.java +++ b/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/CredProtectAuthenticationExtensionsClientInputJackson2Tests.java @@ -29,6 +29,7 @@ import org.springframework.security.web.webauthn.api.ImmutableAuthenticationExte * * @author Rob Winch */ +@SuppressWarnings("removal") class CredProtectAuthenticationExtensionsClientInputJackson2Tests { private ObjectMapper mapper; diff --git a/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/Jackson2Tests.java b/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/Jackson2Tests.java index d93384cb13..c9d14f6366 100644 --- a/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/Jackson2Tests.java +++ b/webauthn/src/test/java/org/springframework/security/web/webauthn/jackson/Jackson2Tests.java @@ -44,6 +44,7 @@ import org.springframework.security.web.webauthn.api.UserVerificationRequirement import static org.assertj.core.api.Assertions.assertThat; +@SuppressWarnings("removal") class Jackson2Tests { private ObjectMapper mapper;