Reduce scope of suppressed deprecation warnings in SpringJUnit4ClassRunner

This commit is contained in:
Sam Brannen
2015-07-24 16:51:41 +02:00
parent dede31eeed
commit 24b1dc14d2

View File

@@ -85,7 +85,6 @@ import org.springframework.util.ReflectionUtils;
* @see org.springframework.test.context.junit4.rules.SpringClassRule
* @see org.springframework.test.context.junit4.rules.SpringMethodRule
*/
@SuppressWarnings("deprecation")
public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
private static final Log logger = LogFactory.getLog(SpringJUnit4ClassRunner.class);
@@ -351,6 +350,7 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
* @see #getJUnitTimeout(FrameworkMethod)
*/
@Override
@SuppressWarnings("deprecation")
protected Statement withPotentialTimeout(FrameworkMethod frameworkMethod, Object testInstance, Statement next) {
Statement statement = null;
long springTimeout = getSpringTimeout(frameworkMethod);