mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -31,8 +31,16 @@ import java.util.Objects;
|
|||
import jdk.internal.access.foreign.MemorySegmentProxy;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
#if[rw]
|
||||
sealed
|
||||
#else[rw]
|
||||
final
|
||||
#end[rw]
|
||||
class ByteBufferAs$Type$Buffer$RW$$BO$ // package-private
|
||||
extends {#if[ro]?ByteBufferAs}$Type$Buffer{#if[ro]?$BO$}
|
||||
#if[rw]
|
||||
permits ByteBufferAs$Type$BufferR$BO$
|
||||
#end[rw]
|
||||
{
|
||||
|
||||
#if[rw]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue