-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
b117
-
Verified
The ByteBuffer related VarHandle factory method on MethodHandles:
public static
VarHandle byteArrayViewVarHandle(Class<?> viewArrayClass,
boolean bigEndian) throws IllegalArgumentException
accepts a boolean value representing the endianness.
Changing that parameter to ByteOrder would make it clearer for method invocations what endianness is being requested, and further makes it easier to express native endianness (e.g. ByteOrder.nativeOrder)
public static
VarHandle byteArrayViewVarHandle(Class<?> viewArrayClass,
boolean bigEndian) throws IllegalArgumentException
accepts a boolean value representing the endianness.
Changing that parameter to ByteOrder would make it clearer for method invocations what endianness is being requested, and further makes it easier to express native endianness (e.g. ByteOrder.nativeOrder)