On Mon, 2 May 2022 10:42:35 GMT, Rémi Forax <fo...@openjdk.org> wrote:

>> Most AutoCloseables do not mention this in class-level javadocs. Is there a 
>> reason you think this one should?
>
> close() is now equivalent to the method shutdownAndAwaitTermination() shown 
> in the javadoc so i believe , replacing it with a try-with-resources is 
> better in term of documenting how an executor service can be used

OK, done (see https://bugs.openjdk.java.net/browse/JDK-8285450)

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

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

Reply via email to