Browse Source

Polishing

pull/32405/head
Sam Brannen 2 years ago
parent
commit
20be9e150c
  1. 1
      spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java
  2. 2
      spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java
  3. 1
      spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java
  4. 3
      spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java
  5. 12
      spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java

1
spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java

@ -406,6 +406,7 @@ abstract class AbstractPropertyAccessorTests { @@ -406,6 +406,7 @@ abstract class AbstractPropertyAccessorTests {
}
@Test
@SuppressWarnings("unchecked")
void setPropertyIntermediateListIsNullWithAutoGrow() {
Foo target = new Foo();
AbstractPropertyAccessor accessor = createAccessor(target);

2
spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java

@ -1318,6 +1318,7 @@ class CustomEditorTests { @@ -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 { @@ -1353,6 +1354,7 @@ class CustomEditorTests {
}
@Test
@SuppressWarnings("unchecked")
void uninitializedArrayPropertyWithCustomEditor() {
IndexedTestBean bean = new IndexedTestBean(false);
BeanWrapper bw = new BeanWrapperImpl(bean);

1
spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationProxyTests.java

@ -84,6 +84,7 @@ class MethodValidationProxyTests { @@ -84,6 +84,7 @@ class MethodValidationProxyTests {
}
@Test // gh-29782
@SuppressWarnings("unchecked")
public void testMethodValidationPostProcessorForInterfaceOnlyProxy() {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.register(MethodValidationPostProcessor.class);

3
spring-jms/src/test/java/org/springframework/jms/StubTextMessage.java

@ -1,5 +1,5 @@ @@ -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 { @@ -325,6 +325,7 @@ public class StubTextMessage implements TextMessage {
}
@Override
@SuppressWarnings("rawtypes")
public boolean isBodyAssignableTo(Class c) {
return false;
}

12
spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java

@ -315,32 +315,32 @@ class BarTestInterceptor extends FooTestInterceptor { @@ -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;
}
}

Loading…
Cancel
Save