Integrated: 8299193: (bf) Buffer.capacity should be declared final
Per Minborg
pminborg at openjdk.org
Mon Jan 2 13:28:56 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.
This pull request has now been integrated.
Changeset: 8a10eef4
Author: Per Minborg <pminborg at openjdk.org>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8a10eef408f10d1a6d698a6f74942111b72d0765
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8299193: (bf) Buffer.capacity should be declared final
Reviewed-by: rriggs, dholmes, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/11755
More information about the nio-dev
mailing list