On Sun, 1 May 2022 14:37:43 GMT, Rémi Forax <fo...@openjdk.org> wrote:

>> This is the jsr166 refresh for jdk19. See 
>> https://bugs.openjdk.java.net/browse/JDK-8285450 and 
>> https://bugs.openjdk.java.net/browse/JDK-8277090
>
> src/java.base/share/classes/java/util/concurrent/ExecutorService.java line 
> 138:
> 
>> 136:  * @author Doug Lea
>> 137:  */
>> 138: public interface ExecutorService extends Executor, AutoCloseable {
> 
> The class documentation should be expanded to explain that an ExecutorService 
> can be used with a try-with-resources

Most AutoCloseables do not mention this in class-level javadocs. Is there a 
reason you think this one should?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8490

Reply via email to