RFR: 8305902: (cs) Resolve default Charset only once in StreamEncoder and StreamDecoder [v2]

Sergey Tsypanov stsypanov at openjdk.org
Wed Apr 12 12:47:24 UTC 2023


On Wed, 12 Apr 2023 12:25:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> The callers throw NPE in case of null csName, but both are Encoder and Decoder are public. Will it be safe to remove explicit null check?
>
> sun.nio.cs is a JDK internal package. The only usages of StreamDecoder.forInputStreamReader and StreamEncoder.forOutputStreamWriter. You should be able to quickly check the usages.

DOne

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13443#discussion_r1164080463


More information about the nio-dev mailing list