Avoid compilation warning for test class with serializable base class
This commit is contained in:
parent
ca84559588
commit
4b7d9b1f9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue