提交 24b1dc14 编写于 作者: S Sam Brannen

Reduce scope of suppressed deprecation warnings in SpringJUnit4ClassRunner

上级 dede31ee
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册