# | Line 217 | Line 217 | public class ThreadPoolExecutorTest exte | |
---|---|---|
217 | new ThreadPoolExecutor(1, 1, | |
218 | LONG_DELAY_MS, MILLISECONDS, | |
219 | new ArrayBlockingQueue<Runnable>(10)); | |
220 | < | assertEquals(1, p.getCorePoolSize()); |
221 | < | joinPool(p); |
220 | > | try (PoolCleaner cleaner = cleaner(p)) { |
221 | > | assertEquals(1, p.getCorePoolSize()); |
222 | > | } |
223 | } | |
224 | ||
225 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |