8210279: (bf) Remove unused package private method java.nio.Buffer.truncate()
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Aug 31 22:03:15 UTC 2018
https://bugs.openjdk.java.net/browse/JDK-8210279
Remove the indicated method which was inadvertently overlooked in the fix of JDK-8193822.
Thanks,
Brian
--- a/src/java.base/share/classes/java/nio/Buffer.java
+++ b/src/java.base/share/classes/java/nio/Buffer.java
@@ -693,13 +693,6 @@
return mark;
}
- final void truncate() { // package-private
- mark = -1;
- position = 0;
- limit = 0;
- capacity = 0;
- }
-
final void discardMark() { // package-private
mark = -1;
}
On Aug 8, 2018, at 11:48 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 08/08/2018 15:45, Brian Burkhalter wrote:
>> https://bugs.openjdk.java.net/browse/JDK-8193822
>>
>> Diff included below (excluding copyright year update).
>>
> Can you re-check the to make sure that you've got everything? The original patch added a package-private truncate method, that was the main thing to be removed with JDK-8193822.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180831/f225dba5/attachment.html>
More information about the nio-dev
mailing list