mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8283417: Update java.nio buffers to use sealed classes
Reviewed-by: rriggs, darcy, iris, alanb
This commit is contained in:
parent
19f01ab701
commit
b36cf35ad9
7 changed files with 45 additions and 8 deletions
|
@ -40,8 +40,16 @@ import jdk.internal.access.foreign.MemorySegmentProxy;
|
|||
* instance of this class rather than of the superclass.
|
||||
#end[rw]
|
||||
*/
|
||||
#if[rw]
|
||||
sealed
|
||||
#else[rw]
|
||||
final
|
||||
#end[rw]
|
||||
class Heap$Type$Buffer$RW$
|
||||
extends {#if[ro]?Heap}$Type$Buffer
|
||||
#if[rw]
|
||||
permits Heap$Type$BufferR
|
||||
#end[rw]
|
||||
{
|
||||
#if[rw]
|
||||
// Cached array base offset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue