Skip to content

Commit 20be9e1

Browse files
committed
Polishing
1 parent 65d7762 commit 20be9e1

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ void setPropertyIntermediatePropertyIsNullWithAutoGrow() {
406406
}
407407

408408
@Test
409+
@SuppressWarnings("unchecked")
409410
void setPropertyIntermediateListIsNullWithAutoGrow() {
410411
Foo target = new Foo();
411412
AbstractPropertyAccessor accessor = createAccessor(target);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,7 @@ public String getAsText() {
13181318
}
13191319

13201320
@Test
1321+
@SuppressWarnings("unchecked")
13211322
void indexedPropertiesWithListPropertyEditor() {
13221323
IndexedTestBean bean = new IndexedTestBean();
13231324
BeanWrapper bw = new BeanWrapperImpl(bean);
@@ -1353,6 +1354,7 @@ void conversionToOldCollections() {
13531354
}
13541355

13551356
@Test
1357+
@SuppressWarnings("unchecked")
13561358
void uninitializedArrayPropertyWithCustomEditor() {
13571359
IndexedTestBean bean = new IndexedTestBean(false);
13581360
BeanWrapper bw = new BeanWrapperImpl(bean);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void testMethodValidationPostProcessor() {
8484
}
8585

8686
@Test // gh-29782
87+
@SuppressWarnings("unchecked")
8788
public void testMethodValidationPostProcessorForInterfaceOnlyProxy() {
8889
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
8990
context.register(MethodValidationPostProcessor.class);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -325,6 +325,7 @@ public <T> T getBody(Class<T> c) {
325325
}
326326

327327
@Override
328+
@SuppressWarnings("rawtypes")
328329
public boolean isBodyAssignableTo(Class c) {
329330
return false;
330331
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,32 +315,32 @@ class BarTestInterceptor extends FooTestInterceptor {
315315
class TestTaskScheduler implements TaskScheduler {
316316

317317
@Override
318-
public ScheduledFuture schedule(Runnable task, Trigger trigger) {
318+
public ScheduledFuture<?> schedule(Runnable task, Trigger trigger) {
319319
return null;
320320
}
321321

322322
@Override
323-
public ScheduledFuture schedule(Runnable task, Instant startTime) {
323+
public ScheduledFuture<?> schedule(Runnable task, Instant startTime) {
324324
return null;
325325
}
326326

327327
@Override
328-
public ScheduledFuture scheduleAtFixedRate(Runnable task, Instant startTime, Duration period) {
328+
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Instant startTime, Duration period) {
329329
return null;
330330
}
331331

332332
@Override
333-
public ScheduledFuture scheduleAtFixedRate(Runnable task, Duration period) {
333+
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Duration period) {
334334
return null;
335335
}
336336

337337
@Override
338-
public ScheduledFuture scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay) {
338+
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay) {
339339
return null;
340340
}
341341

342342
@Override
343-
public ScheduledFuture scheduleWithFixedDelay(Runnable task, Duration delay) {
343+
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Duration delay) {
344344
return null;
345345
}
346346
}

0 commit comments

Comments
 (0)