Polishing

This commit is contained in:
Sam Brannen
2024-03-09 14:28:01 +01:00
parent 65d77624d1
commit 20be9e150c
5 changed files with 12 additions and 7 deletions

View File

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

View File

@@ -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);

View File

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

View File

@@ -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;
}

View File

@@ -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;
}
}