On Thu, 16 Apr 2026 06:48:54 GMT, Alan Bateman <[email protected]> wrote:
>> Artur Barashev has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Update Copyright year
>
> src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java line 1682:
>
>> 1680: // Don't close the Socket in case of timeouts or interrupts.
>> 1681: if (cause instanceof SocketTimeoutException) {
>> 1682: throw (IOException)cause;
>
> You could use pattern matching for switch here and avoid the cast to
> IOException.
Done, thanks!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30753#discussion_r3095271182