common: Annotate some methods in ByteBuffer
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / event / io / BitBuffer.java
index 8316cb8b4408e9587379ad6ee6e574a98c6460d5..37f3fd7efef8daf709390e26082f12e50924721c 100644 (file)
@@ -15,8 +15,6 @@
 
 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;
@@ -64,7 +62,7 @@ public final class BitBuffer {
      * Default constructor, makes a big-endian buffer
      */
     public BitBuffer() {
-        this(checkNotNull(ByteBuffer.allocateDirect(0)), ByteOrder.BIG_ENDIAN);
+        this(ByteBuffer.allocateDirect(0), ByteOrder.BIG_ENDIAN);
     }
 
     /**
@@ -187,7 +185,7 @@ public final class BitBuffer {
      *             - 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;
This page took 0.024942 seconds and 5 git commands to generate.