RFR: JDK-8260925: HttpsURLConnection does not work with other JSSE provider. [v2]
Vyom Tewari
vtewari at openjdk.java.net
Wed Mar 3 04:27:16 UTC 2021
On Tue, 2 Mar 2021 20:17:25 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:
>> Vyom Tewari has updated the pull request incrementally with one additional commit since the last revision:
>>
>> used List.of instead of Collections.singletonList
>
> src/java.base/share/classes/sun/net/www/protocol/https/HttpsClient.java line 569:
>
>> 567: SSLParameters paramaters = s.getSSLParameters();
>> 568: paramaters.setEndpointIdentificationAlgorithm("HTTPS");
>> 569: paramaters.setServerNames(Collections.singletonList(new SNIHostName(host)));
>
> List.of() is more preferred now.
>
> Is the code in line 465 and 467 duplicated now?
used List.of(), but i a not able to follow line 465 and 467. Are we are looking same code base repo?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2583
More information about the net-dev
mailing list