ByteArrayOutputStream.ensureCapacity(int) is currently private. It would be 
useful if it were protected, so that it can be more easily extended by 
subclasses.

Mailing list discussion: 
https://mail.openjdk.org/pipermail/core-libs-dev/2026-January/156983.html

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

Commit messages:
 - Make ByteArrayOutputStream.ensureCapacity(int) protected

Changes: https://git.openjdk.org/jdk/pull/29180/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29180&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8374610
  Stats: 129 lines in 2 files changed: 122 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/29180.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29180/head:pull/29180

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

Reply via email to