From 5752585bb260a174777d54038771bd51d0b4b8ab Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Sat, 7 Jun 2025 12:34:21 +0200 Subject: [PATCH] Clean up warnings in build --- .../annotation/AutowiredAnnotationBeanPostProcessorTests.java | 2 +- .../http/server/reactive/bootstrap/ReactorHttpsServer.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java b/spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java index 2c9db160b2..03c9e1139a 100644 --- a/spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java @@ -2457,7 +2457,7 @@ class AutowiredAnnotationBeanPostProcessorTests { } @Test - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "rawtypes" }) void genericsBasedConstructorInjectionWithNonTypedTarget() { RootBeanDefinition bd = new RootBeanDefinition(RepositoryConstructorInjectionBean.class); bd.setScope(BeanDefinition.SCOPE_PROTOTYPE); diff --git a/spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/ReactorHttpsServer.java b/spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/ReactorHttpsServer.java index 66e23ce216..c0497175ae 100644 --- a/spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/ReactorHttpsServer.java +++ b/spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/ReactorHttpsServer.java @@ -39,6 +39,7 @@ public class ReactorHttpsServer extends AbstractHttpServer { private AtomicReference serverRef = new AtomicReference<>(); + @SuppressWarnings("deprecation") @Override protected void initServer() throws Exception { SelfSignedCertificate cert = new SelfSignedCertificate();