Withdrawn: 8269383: (bf) ByteOrder should expose methods to test if platform is big or little endian
Yi Yang
yyang at openjdk.java.net
Mon Jun 28 03:33:05 UTC 2021
On Fri, 25 Jun 2021 13:30:56 GMT, Yi Yang <yyang at openjdk.org> wrote:
> Hi, can I have a review of this change that adds two new utility methods for java.nio.ByteOrder? Looking through the whole JDK codebase, most calls of ByteOrder.nativeOrder() is to check if the underlying platform is little-endian/big-endian(e.g. #4596 ). There is no reason to only provide ByteOrder.nativeOrder while leaving big-endian/little-endian checking methods blank. For most cases(in JDK or in user code), we want a checking(byte order) rather than retrieving(byte order).
>
> Thanks!
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4595
More information about the nio-dev
mailing list