Reintroduce suppression of deprecation warning

This commit is contained in:
Sam Brannen 2018-06-15 00:43:21 +03:00
parent 8027e1f109
commit 802763d26f
1 changed files with 4 additions and 0 deletions

View File

@ -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);