RFR: 8314746: Remove unused private put* methods from DirectByteBufferR

Brian Burkhalter bpb at openjdk.org
Tue Aug 22 16:23:17 UTC 2023


On Mon, 21 Aug 2023 16:45:40 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> 1. private ByteBuffer putChar(long a, char x)
> 2. private ByteBuffer putShort(long a, short x)
> 3. private ByteBuffer putInt(long a, int x)
> 4. private ByteBuffer putLong(long a, long x)
> 5. private ByteBuffer putFloat(long a, float x)
> 6. private ByteBuffer putDouble(long a, double x)
> 
> This methods are only called from this fragment and calls are guarded by `#if[rw]`
> https://github.com/openjdk/jdk/blob/17a19dc06062331c954fa519a4f668664b1533c9/src/java.base/share/classes/java/nio/Direct-X-Buffer-bin.java.template#L61-L82

Marked as reviewed by bpb (Reviewer).

This builds and passes the NIO tests on Linux.

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

PR Review: https://git.openjdk.org/jdk/pull/15365#pullrequestreview-1589816230
PR Comment: https://git.openjdk.org/jdk/pull/15365#issuecomment-1688504424


More information about the nio-dev mailing list