On Mon, 12 Jan 2026 08:02:21 GMT, Matthias Baesken <[email protected]> wrote:
>> src/java.desktop/share/classes/com/sun/media/sound/Platform.java line 63:
>>
>>> 61: */
>>> 62: static boolean isBigEndian() {
>>> 63: return
>>> java.nio.ByteOrder.nativeOrder().equals(java.nio.ByteOrder.BIG_ENDIAN);
>>
>> what is a purpose to use fqdn for ByteOrder class here?
>
> Just checked how other JDK coding is doing the LE/BE test, then copied it
> from here
> https://github.com/openjdk/jdk/blob/7cf7f01fb339bf3c5b81d946be8afa71ec267e42/src/java.security.jgss/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java#L49
> Should I instead import `java.nio.ByteOrder` ?
yes this is how it is used in desktop module.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29113#discussion_r2683237579