Use the NonNull utility methods where we can
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ctf.core / src / org / eclipse / tracecompass / tmf / ctf / core / trace / CtfTmfTrace.java
index 2e28ce22ccc6efe5a537153aef77b962190ca3fa..5cc679ba496163c6a4c5d0b9b06db9952e64b3fb 100644 (file)
@@ -14,6 +14,8 @@
 
 package org.eclipse.tracecompass.tmf.ctf.core.trace;
 
+import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
+
 import java.nio.BufferOverflowException;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -92,15 +94,14 @@ public class CtfTmfTrace extends TmfTrace
     /**
      * Event aspects available for all CTF traces
      */
-    @SuppressWarnings("null")
     private static final @NonNull Collection<ITmfEventAspect> CTF_ASPECTS =
-            ImmutableList.of(
+            checkNotNull(ImmutableList.of(
                     ITmfEventAspect.BaseAspects.TIMESTAMP,
                     new CtfChannelAspect(),
                     new CtfCpuAspect(),
                     ITmfEventAspect.BaseAspects.EVENT_TYPE,
                     ITmfEventAspect.BaseAspects.CONTENTS
-                    );
+                    ));
 
     /**
      * The Ctf clock unique identifier field
This page took 0.024795 seconds and 5 git commands to generate.