ss.test: Fix nullness warnings
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 13 Jan 2017 18:13:22 +0000 (13:13 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Sun, 15 Jan 2017 01:59:06 +0000 (20:59 -0500)
Add a few @NonNull annotations to remove warnings on code that is never
null.

Change-Id: I92bf7e77fea99e465b31932d5eb2b1c1711233f6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/88674
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
statesystem/org.eclipse.tracecompass.statesystem.core.tests/src/org/eclipse/tracecompass/statesystem/core/tests/StateSystemPushPopTest.java

index 37b57735132f4fbc27c65c16ca719ff97479010e..01082043dcab9aa6c95ad2c33f17cc785a913ce4 100644 (file)
@@ -23,6 +23,7 @@ import java.io.File;
 import java.io.IOException;
 import java.util.List;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.tracecompass.internal.statesystem.core.StateSystem;
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystemBuilder;
 import org.eclipse.tracecompass.statesystem.core.StateSystemUtils;
@@ -56,11 +57,11 @@ public class StateSystemPushPopTest {
 
     /* State values that will be used */
     //private final static ITmfStateValue nullValue = TmfStateValue.nullValue();
-    private final static ITmfStateValue value1 = TmfStateValue.newValueString("A");
-    private final static ITmfStateValue value2 = TmfStateValue.newValueInt(10);
-    private final static ITmfStateValue value3 = TmfStateValue.nullValue();
-    private final static ITmfStateValue value4 = TmfStateValue.newValueString("D");
-    private final static ITmfStateValue value5 = TmfStateValue.newValueLong(Long.MAX_VALUE);
+    private final static @NonNull ITmfStateValue value1 = TmfStateValue.newValueString("A");
+    private final static @NonNull ITmfStateValue value2 = TmfStateValue.newValueInt(10);
+    private final static @NonNull ITmfStateValue value3 = TmfStateValue.nullValue();
+    private final static @NonNull ITmfStateValue value4 = TmfStateValue.newValueString("D");
+    private final static @NonNull ITmfStateValue value5 = TmfStateValue.newValueLong(Long.MAX_VALUE);
 
     /**
      * Initialization. We run the checks for the return values of
This page took 0.026627 seconds and 5 git commands to generate.