Skip to content

Commit fae3b02

Browse files
author
Andrey Turbanov
committed
8314746: Remove unused private put* methods from DirectByteBufferR
Reviewed-by: alanb, bpb
1 parent 096b7ff commit fae3b02

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/java.base/share/classes/java/nio/Direct-X-Buffer-bin.java.template

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -58,19 +58,17 @@ class XXX {
5858

5959
#end[rw]
6060

61-
private ByteBuffer put$Type$(long a, $type$ x) {
6261
#if[rw]
62+
private ByteBuffer put$Type$(long a, $type$ x) {
6363
try {
6464
$memtype$ y = $toBits$(x);
6565
SCOPED_MEMORY_ACCESS.put$Memtype$Unaligned(session(), null, a, y, bigEndian);
6666
} finally {
6767
Reference.reachabilityFence(this);
6868
}
6969
return this;
70-
#else[rw]
71-
throw new ReadOnlyBufferException();
72-
#end[rw]
7370
}
71+
#end[rw]
7472

7573
public ByteBuffer put$Type$($type$ x) {
7674
#if[rw]

0 commit comments

Comments
 (0)