From 802763d26f4aa263df2d474746f3963912f8660b Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 15 Jun 2018 00:43:21 +0300 Subject: [PATCH] Reintroduce suppression of deprecation warning --- .../test/context/junit4/SpringJUnit4ClassRunner.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java b/spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java index 11619a9efe..0294700ac2 100644 --- a/spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java +++ b/spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java @@ -365,6 +365,10 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner { * @see #getJUnitTimeout(FrameworkMethod) */ @Override + // Retain the following warning suppression for deprecation (even if Eclipse + // states it is unnecessary) since withPotentialTimeout(FrameworkMethod,Object,Statement) + // in BlockJUnit4ClassRunner has been deprecated. + @SuppressWarnings("deprecation") protected Statement withPotentialTimeout(FrameworkMethod frameworkMethod, Object testInstance, Statement next) { Statement statement = null; long springTimeout = getSpringTimeout(frameworkMethod);