Browse Source

Reintroduce suppression of deprecation warning

pull/1858/merge
Sam Brannen 7 years ago
parent
commit
802763d26f
  1. 4
      spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java

4
spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java

@ -365,6 +365,10 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner { @@ -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);

Loading…
Cancel
Save