RFR: 8270490: Charset.forName() taking fallback default value [v2]

Naoto Sato naoto at openjdk.java.net
Wed Oct 20 19:15:09 UTC 2021


On Wed, 20 Oct 2021 18:58:34 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Thanks, Joe. Moved that explanation into the `fallback` param, which I initially intended.
>
> The java.nio.charset package has the usual "Unless otherwise noted, passing a null argument ..." so if fallback is allowed to be null then you will need to add ", can null" to its description.

Our comments crossed I guess? Moved the null allowance into `fallback`.

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

PR: https://git.openjdk.java.net/jdk/pull/6045


More information about the core-libs-dev mailing list