package org.eclipse.tracecompass.ctf.core.event.io;
-import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
-
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
* Default constructor, makes a big-endian buffer
*/
public BitBuffer() {
- this(checkNotNull(ByteBuffer.allocateDirect(0)), ByteOrder.BIG_ENDIAN);
+ this(ByteBuffer.allocateDirect(0), ByteOrder.BIG_ENDIAN);
}
/**
* - If there are fewer than length bytes remaining in this
* buffer
*/
- public void get(@NonNull byte[] dst) {
+ public void get(byte @NonNull [] dst) {
fBuffer.position((int) (fPosition / BIT_CHAR));
fBuffer.get(dst);
fPosition += dst.length * BIT_CHAR;