# | Line 610 | Line 610 | public class Executors { | |
---|---|---|
610 | throws InterruptedException, ExecutionException, TimeoutException { | |
611 | return e.invokeAny(tasks, timeout, unit); | |
612 | } | |
613 | + | protected void finalize() { |
614 | + | e.shutdown(); |
615 | + | } |
616 | + | |
617 | } | |
618 | ||
619 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |