mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8314746: Remove unused private put* methods from DirectByteBufferR
Reviewed-by: alanb, bpb
This commit is contained in:
parent
096b7ff097
commit
fae3b02aeb
1 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -58,8 +58,8 @@ class XXX {
|
||||||
|
|
||||||
#end[rw]
|
#end[rw]
|
||||||
|
|
||||||
private ByteBuffer put$Type$(long a, $type$ x) {
|
|
||||||
#if[rw]
|
#if[rw]
|
||||||
|
private ByteBuffer put$Type$(long a, $type$ x) {
|
||||||
try {
|
try {
|
||||||
$memtype$ y = $toBits$(x);
|
$memtype$ y = $toBits$(x);
|
||||||
SCOPED_MEMORY_ACCESS.put$Memtype$Unaligned(session(), null, a, y, bigEndian);
|
SCOPED_MEMORY_ACCESS.put$Memtype$Unaligned(session(), null, a, y, bigEndian);
|
||||||
|
@ -67,10 +67,8 @@ class XXX {
|
||||||
Reference.reachabilityFence(this);
|
Reference.reachabilityFence(this);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
#else[rw]
|
|
||||||
throw new ReadOnlyBufferException();
|
|
||||||
#end[rw]
|
|
||||||
}
|
}
|
||||||
|
#end[rw]
|
||||||
|
|
||||||
public ByteBuffer put$Type$($type$ x) {
|
public ByteBuffer put$Type$($type$ x) {
|
||||||
#if[rw]
|
#if[rw]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue