mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8299193: (bf) Buffer.capacity should be declared final
Reviewed-by: rriggs, dholmes, jpai
This commit is contained in:
parent
e09e243116
commit
8a10eef408
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ public abstract sealed class Buffer
|
|||
private int mark = -1;
|
||||
private int position = 0;
|
||||
private int limit;
|
||||
private int capacity;
|
||||
private final int capacity;
|
||||
|
||||
// Used by heap byte buffers or direct buffers with Unsafe access
|
||||
// For heap byte buffers this field will be the address relative to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue