# | Line 297 | Line 297 | public class ScheduledExecutorSubclassTe | |
---|---|---|
297 | final CustomExecutor p = new CustomExecutor(1); | |
298 | try (PoolCleaner cleaner = cleaner(p)) { | |
299 | try { | |
300 | < | TrackedCallable callable = null; |
301 | < | Future f = p.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); |
300 | > | Future f = p.schedule((Callable)null, |
301 | > | randomTimeout(), randomTimeUnit()); |
302 | shouldThrow(); | |
303 | } catch (NullPointerException success) {} | |
304 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |