Skip to content

Commit 4b7d9b1

Browse files
committed
Avoid compilation warning for test class with serializable base class
1 parent ca84559 commit 4b7d9b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-context/src/test/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBeanTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,18 @@ void executorWithPrestartAllCoreThreads() {
7676
verify(threadPoolExecutor).prestartAllCoreThreads();
7777
}
7878

79+
7980
@Configuration
8081
static class ExecutorConfig {
8182

8283
@Bean
8384
ThreadPoolExecutorFactoryBean executor() {
8485
return new ThreadPoolExecutorFactoryBean();
8586
}
86-
8787
}
8888

89+
90+
@SuppressWarnings("serial")
8991
private static class TestThreadPoolExecutorFactoryBean extends ThreadPoolExecutorFactoryBean {
9092

9193
@Override

0 commit comments

Comments
 (0)