Browse Source

Avoid compilation warning for test class with serializable base class

pull/27832/head
Juergen Hoeller 3 years ago
parent
commit
4b7d9b1f9c
  1. 4
      spring-context/src/test/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBeanTests.java

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

@ -76,6 +76,7 @@ class ThreadPoolExecutorFactoryBeanTests { @@ -76,6 +76,7 @@ class ThreadPoolExecutorFactoryBeanTests {
verify(threadPoolExecutor).prestartAllCoreThreads();
}
@Configuration
static class ExecutorConfig {
@ -83,9 +84,10 @@ class ThreadPoolExecutorFactoryBeanTests { @@ -83,9 +84,10 @@ class ThreadPoolExecutorFactoryBeanTests {
ThreadPoolExecutorFactoryBean executor() {
return new ThreadPoolExecutorFactoryBean();
}
}
@SuppressWarnings("serial")
private static class TestThreadPoolExecutorFactoryBean extends ThreadPoolExecutorFactoryBean {
@Override

Loading…
Cancel
Save