8299193: (bf) Buffer.capacity should be declared final

Reviewed-by: rriggs, dholmes, jpai
This commit is contained in:
Per Minborg 2023-01-02 13:25:04 +00:00 committed by Jaikiran Pai
parent e09e243116
commit 8a10eef408

@ -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