On Tue, 2 Dec 2025 16:46:29 GMT, Sergey Chernyshev <[email protected]> 
wrote:

>> test/jdk/javax/net/ssl/HttpsURLConnection/SubjectAltNameIPv6.java line 110:
>> 
>>> 108: 
>>> 109:         SSLSocketFactory sf = new 
>>> SimpleSSLContext().get().getSocketFactory();
>>> 110:         URL url = new URL("https://[::1]:"; + serverPort + 
>>> "/index.html");
>> 
>> Suggestion:
>> 
>>   URL url = 
>>           new URI("https://[::1]:"; + serverPort + "/index.html").toURL();
>
> I think the block is better readable without it.

It's deprecated since version 20 I think

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28577#discussion_r2582045071

Reply via email to