On Thu, 20 Jan 2022 07:12:42 GMT, Xue-Lei Andrew Fan <[email protected]> wrote:
> In the getApplicationProtocols() method in javax.net.ssl.SSLParameters, the
> return statement says that "The array is ordered based on protocol
> preference, with protocols[0] being the most preferred.". However, there is
> no "protocols" variable in this method.
>
> The update is a minor correction so that the specification is not rely on the
> "protocols" variable.
src/java.base/share/classes/javax/net/ssl/SSLParameters.java line 619:
> 617: *
> 618: * @return a non-null, possibly zero-length array of application
> protocol
> 619: * {@code String}s. The array is placed in descending order
> of
The phrase "descending order" seems more appropriate for numerical values. I
think the previous wording was more clear, with a small change: "The array is
ordered based on protocol preference, with the first entry being the most
preferred."
-------------
PR: https://git.openjdk.java.net/jdk/pull/7152