Avoid compilation warning for test class with serializable base class

This commit is contained in:
Juergen Hoeller 2021-12-14 16:48:07 +01:00
parent ca84559588
commit 4b7d9b1f9c
1 changed files with 3 additions and 1 deletions

View File

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