Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / tmf / core / statesystem / mipmap / TmfMipmapFeature.java
index f6a1065418122e2e360c6a5efe7f98dc9132ac06..a04ffff274cc8d1338bb28c6ff5415d37000d1d3 100644 (file)
@@ -15,6 +15,7 @@ package org.eclipse.tracecompass.internal.tmf.core.statesystem.mipmap;
 import java.util.ArrayList;
 import java.util.List;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystemBuilder;
 import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
 import org.eclipse.tracecompass.statesystem.core.exceptions.StateValueTypeException;
@@ -34,7 +35,7 @@ import org.eclipse.tracecompass.statesystem.core.statevalue.TmfStateValue;
 public abstract class TmfMipmapFeature implements ITmfMipmapFeature {
 
     /** The current state value */
-    protected ITmfStateValue currentValue = TmfStateValue.nullValue();
+    protected @NonNull ITmfStateValue currentValue = TmfStateValue.nullValue();
     /** The current start time for the state value */
     protected long currentStartTime;
     /** The list of ongoing state intervals per mipmap level */
@@ -167,7 +168,7 @@ public abstract class TmfMipmapFeature implements ITmfMipmapFeature {
      *            The end time of the mipmap interval
      * @return A state value to be stored in the mipmap level attribute
      */
-    protected abstract ITmfStateValue computeMipmapValue(List<ITmfStateInterval> lowerIntervals, long startTime, long endTime);
+    protected abstract @NonNull ITmfStateValue computeMipmapValue(List<ITmfStateInterval> lowerIntervals, long startTime, long endTime);
 
     /**
      * Get the mipmap resolution
This page took 0.025245 seconds and 5 git commands to generate.