From 38356fda108853da99db47a27c1362a4fa410f02 Mon Sep 17 00:00:00 2001 From: Jay Choi Date: Thu, 22 Jan 2026 19:23:03 +0900 Subject: [PATCH] Remove compiler warnings for spring-security-webauthn Closes gh-18442 Signed-off-by: Jay Choi --- webauthn/spring-security-webauthn.gradle | 1 + .../authentication/WebAuthnAuthenticationFilterTests.java | 1 + ...dProtectAuthenticationExtensionsClientInputJackson2Tests.java | 1 + .../security/web/webauthn/jackson/Jackson2Tests.java | 1 + 4 files changed, 4 insertions(+) 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;