RFR: 8282130: (bf) Remove unused ARRAY_BASE_OFFSET, ARRAY_INDEX_SCALE from read-only Heap Buffers

Andrey Turbanov aturbanov at openjdk.java.net
Fri Feb 18 20:14:28 UTC 2022


IDEA noticed unused fields in ReadOnly Heap buffer classes: `HeapByteBufferR`, `HeapCharBufferR`, `HeapDoubleBufferR`, `HeapFloatBufferR`, `HeapIntBufferR`, `HeapLongBufferR`, `HeapShortBufferR`.
![изображение](https://user-images.githubusercontent.com/741251/154662464-1bfc7860-72f9-41bc-ad2a-35ba23b49011.png)

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

Commit messages:
 - [PATCH] Adjust template to remove unused ARRAY_BASE_OFFSET/ARRAY_INDEX_SCALE fields from read-only ByteBuffer's
 - [PATCH] Adjust template to remove unused ARRAY_BASE_OFFSET/ARRAY_INDEX_SCALE fields from read-only ByteBuffer's

Changes: https://git.openjdk.java.net/jdk/pull/7530/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7530&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282130
  Stats: 6 lines in 1 file changed: 2 ins; 3 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7530.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7530/head:pull/7530

PR: https://git.openjdk.java.net/jdk/pull/7530


More information about the nio-dev mailing list