This commit is contained in:
Gary Gregory 2022-06-08 12:37:11 -04:00
commit 593ccc17b8
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ public class Conversion {
* @throws NullPointerException if {@code src} is {@code null} * @throws NullPointerException if {@code src} is {@code null}
* @throws IndexOutOfBoundsException if {@code srcPos} is outside the array. * @throws IndexOutOfBoundsException if {@code srcPos} is outside the array.
*/ */
public static char binaryBeMsb0ToHexDigit(boolean[] src, int srcPos) { public static char binaryBeMsb0ToHexDigit(final boolean[] src, final int srcPos) {
// JDK 9: Objects.checkIndex(int index, int length) // JDK 9: Objects.checkIndex(int index, int length)
if (Integer.compareUnsigned(srcPos, src.length) >= 0) { if (Integer.compareUnsigned(srcPos, src.length) >= 0) {
// Throw the correct exception // Throw the correct exception