RFR: 8299193: Declare Buffer.capacity final

Jaikiran Pai jpai at openjdk.org
Mon Jan 2 09:03:49 UTC 2023


On Wed, 21 Dec 2022 12:22:33 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> It is possible to declare the field `capacity` in `java.nio.Buffer` `final` as the value never changes outside the constructors.

Hello Per, this and the other similar PR will need their PR title to be updated to match their latest JBS issue summaries.

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

PR: https://git.openjdk.org/jdk/pull/11755


More information about the nio-dev mailing list