Skip to content

Commit 24b1dc1

Browse files
committed
Reduce scope of suppressed deprecation warnings in SpringJUnit4ClassRunner
1 parent dede31e commit 24b1dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
* @see org.springframework.test.context.junit4.rules.SpringClassRule
8686
* @see org.springframework.test.context.junit4.rules.SpringMethodRule
8787
*/
88-
@SuppressWarnings("deprecation")
8988
public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
9089

9190
private static final Log logger = LogFactory.getLog(SpringJUnit4ClassRunner.class);
@@ -351,6 +350,7 @@ protected Class<? extends Throwable> getExpectedException(FrameworkMethod framew
351350
* @see #getJUnitTimeout(FrameworkMethod)
352351
*/
353352
@Override
353+
@SuppressWarnings("deprecation")
354354
protected Statement withPotentialTimeout(FrameworkMethod frameworkMethod, Object testInstance, Statement next) {
355355
Statement statement = null;
356356
long springTimeout = getSpringTimeout(frameworkMethod);

0 commit comments

Comments
 (0)