diff --git a/spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java b/spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java index dd50e8c117..81c4fab040 100644 --- a/spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java @@ -406,6 +406,7 @@ abstract class AbstractPropertyAccessorTests { } @Test + @SuppressWarnings("unchecked") void setPropertyIntermediateListIsNullWithAutoGrow() { Foo target = new Foo(); AbstractPropertyAccessor accessor = createAccessor(target); diff --git a/spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java b/spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java index 2e6f0394fd..7517248387 100644 --- a/spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java @@ -1318,6 +1318,7 @@ class CustomEditorTests { } @Test + @SuppressWarnings("unchecked") void indexedPropertiesWithListPropertyEditor() { IndexedTestBean bean = new IndexedTestBean(); BeanWrapper bw = new BeanWrapperImpl(bean); @@ -1353,6 +1354,7 @@ class CustomEditorTests { } @Test + @SuppressWarnings("unchecked") void uninitializedArrayPropertyWithCustomEditor() { IndexedTestBean bean = new IndexedTestBean(false); BeanWrapper bw = new BeanWrapperImpl(bean); diff --git a/spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java b/spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java index cc33a5162f..50bbdecdbf 100644 --- a/spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java +++ b/spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java @@ -84,6 +84,7 @@ class MethodValidationProxyTests { } @Test // gh-29782 + @SuppressWarnings("unchecked") public void testMethodValidationPostProcessorForInterfaceOnlyProxy() { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); context.register(MethodValidationPostProcessor.class); diff --git a/spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java b/spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java index efde0956ad..a1ab40f16c 100644 --- a/spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java +++ b/spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -325,6 +325,7 @@ public class StubTextMessage implements TextMessage { } @Override + @SuppressWarnings("rawtypes") public boolean isBodyAssignableTo(Class c) { return false; } diff --git a/spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java b/spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java index 759893a5dd..04bfc051c5 100644 --- a/spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java +++ b/spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java @@ -315,32 +315,32 @@ class BarTestInterceptor extends FooTestInterceptor { class TestTaskScheduler implements TaskScheduler { @Override - public ScheduledFuture schedule(Runnable task, Trigger trigger) { + public ScheduledFuture schedule(Runnable task, Trigger trigger) { return null; } @Override - public ScheduledFuture schedule(Runnable task, Instant startTime) { + public ScheduledFuture schedule(Runnable task, Instant startTime) { return null; } @Override - public ScheduledFuture scheduleAtFixedRate(Runnable task, Instant startTime, Duration period) { + public ScheduledFuture scheduleAtFixedRate(Runnable task, Instant startTime, Duration period) { return null; } @Override - public ScheduledFuture scheduleAtFixedRate(Runnable task, Duration period) { + public ScheduledFuture scheduleAtFixedRate(Runnable task, Duration period) { return null; } @Override - public ScheduledFuture scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay) { + public ScheduledFuture scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay) { return null; } @Override - public ScheduledFuture scheduleWithFixedDelay(Runnable task, Duration delay) { + public ScheduledFuture scheduleWithFixedDelay(Runnable task, Duration delay) { return null; } }