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
|
@ -70,8 +70,9 @@ import jdk.internal.misc.Unsafe;
|
|||
* @since 1.4
|
||||
*/
|
||||
|
||||
public abstract class MappedByteBuffer
|
||||
public abstract sealed class MappedByteBuffer
|
||||
extends ByteBuffer
|
||||
permits DirectByteBuffer
|
||||
{
|
||||
|
||||
// This is a little bit backwards: By rights MappedByteBuffer should be a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue