Use the NonNull utility methods where we can
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / event / io / BitBuffer.java
index 91448bc4e45e9a2db6357c06ed8df3486fec146a..ceddaea0e004afc5dcd6dc4add70ebd7e320dc47 100644 (file)
@@ -15,6 +15,8 @@
 
 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;
@@ -63,9 +65,8 @@ public final class BitBuffer {
     /**
      * Default constructor, makes a big-endian buffer
      */
-    @SuppressWarnings("null")
     public BitBuffer() {
-        this(ByteBuffer.allocateDirect(0), ByteOrder.BIG_ENDIAN);
+        this(checkNotNull(ByteBuffer.allocateDirect(0)), ByteOrder.BIG_ENDIAN);
     }
 
     /**
This page took 0.035762 seconds and 5 git commands to generate.