Looking to the source code of java.nio.DirectByteBuffer class, I have found this:
if ((length << 0) > Bits.JNI_COPY_TO_ARRAY_THRESHOLD) ....
Doing i << 0 is a no-op. It evaluates to the same as i.
i << 0
i