diff --git a/spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java b/spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java index 653a1b2edd..b3a63c0dc7 100644 --- a/spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java +++ b/spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java @@ -113,6 +113,7 @@ public class CustomInterceptorTests { * A test {@link CacheInterceptor} that handles special exception * types. */ + @SuppressWarnings("serial") static class TestCacheInterceptor extends CacheInterceptor { @Override diff --git a/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java b/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java index 6e50d66346..2e503211ef 100644 --- a/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java +++ b/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java @@ -410,6 +410,7 @@ public class AsyncExecutionTests { @Async + @SuppressWarnings("serial") public static class AsyncClassBean implements Serializable, DisposableBean { public void doSomething(int i) {