These look wrong to me:
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length] => SHOULD BE array.length - 1?
public static void setBoolean(byte[] array, int offset, boolean value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 4?
public static void setFloat(byte[] array, int offset, float value)
IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 4?
public static void setFloatRaw(byte[] array, int offset, float value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 4] => SHOULD BE array.length - 8?
public static void setLong(byte[] array, int offset, long value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 8?
public static void setDouble(byte[] array, int offset, double value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 8?
public static void setDoubleRaw(byte[] array, int offset, double value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length] => SHOULD BE array.length - 1?
public static void setBoolean(byte[] array, int offset, boolean value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 4?
public static void setFloat(byte[] array, int offset, float value)
IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 4?
public static void setFloatRaw(byte[] array, int offset, float value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 4] => SHOULD BE array.length - 8?
public static void setLong(byte[] array, int offset, long value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 8?
public static void setDouble(byte[] array, int offset, double value)
@throws IndexOutOfBoundsException if the provided {@code offset} is outside the range [0, array.length - 2] => SHOULD BE array.length - 8?
public static void setDoubleRaw(byte[] array, int offset, double value)
- links to
-
Commit(master)
openjdk/jdk/1a6da449
-
Review(master)
openjdk/jdk/29095