Reintroduce suppression of deprecation warning
This commit is contained in:
parent
8027e1f109
commit
802763d26f
|
|
@ -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…
Reference in New Issue