public static void reverse(byte[] array) {
        if (array == null) {
            return;
        }
        int i = 0;
        int j = array.length - 1;
        byte tmp;
        while (j > i) {
            tmp = array[j];
            array[j] = array[i];
            array[i] = tmp;
            j--;
            i++;
        }
    }
<p>Reverses the order of the given array.</p>

<p>This method does nothing for a {@code null} input array.</p>

@param array  the array to reverse, may be {@code null}
android/android_framework/base/src/main/java/lang3/ArrayUtils.java