On Tue, 2 Mar 2021 20:17:25 GMT, Xue-Lei Andrew Fan <xue...@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

Reply via email to