# | Line 649 | Line 649 | public class ScheduledExecutorSubclassTe | |
---|---|---|
649 | final CustomExecutor p = new CustomExecutor(1); | |
650 | try (PoolCleaner cleaner = cleaner(p, releaser)) { | |
651 | for (int i = 0; i < tasks.length; i++) | |
652 | < | tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), |
652 | > | tasks[i] = p.schedule(possiblyInterruptedRunnable(SMALL_DELAY_MS), |
653 | LONG_DELAY_MS, MILLISECONDS); | |
654 | int max = tasks.length; | |
655 | if (tasks[4].cancel(true)) --max; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |