RFR: 8299193: Declare Buffer.capacity final

Jaikiran Pai jpai at openjdk.org
Fri Dec 23 06:27:48 UTC 2022


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.

Marked as reviewed by jpai (Reviewer).

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

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


More information about the nio-dev mailing list