531 |
|
*/ |
532 |
|
public void testExecuteNullRunnable() { |
533 |
|
ExecutorService e = new ForkJoinPool(1); |
534 |
– |
TrackedShortRunnable task = null; |
534 |
|
try { |
535 |
< |
Future<?> future = e.submit(task); |
535 |
> |
Future<?> future = e.submit((Runnable) null); |
536 |
|
shouldThrow(); |
537 |
|
} catch (NullPointerException success) { |
538 |
|
} finally { |
546 |
|
*/ |
547 |
|
public void testSubmitNullCallable() { |
548 |
|
ExecutorService e = new ForkJoinPool(1); |
550 |
– |
StringTask t = null; |
549 |
|
try { |
550 |
< |
Future<String> future = e.submit(t); |
550 |
> |
Future<String> future = e.submit((Callable) null); |
551 |
|
shouldThrow(); |
552 |
|
} catch (NullPointerException success) { |
553 |
|
} finally { |