RFR: 8339017: Make a couple of fields in DoubleByte static

Alan Bateman alanb at openjdk.org
Mon Aug 26 20:06:32 UTC 2024


On Thu, 25 Jul 2024 11:42:58 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> 3 fields in `sun.nio.cs.DoubleByte.{Encoder,Decoder}` could be made 'static':
> 1. SS2
> 2. SS3
> 3. MAX_SINGLEBYTE

src/java.base/share/classes/sun/nio/cs/DoubleByte.java line 559:

> 557:                                 implements ArrayEncoder
> 558:     {
> 559:         protected static final int MAX_SINGLEBYTE = 0xff;

Yes it can be static.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20329#discussion_r1730982985


More information about the nio-dev mailing list