Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.remote.core.tests / src / org / eclipse / tracecompass / tmf / remote / core / tests / shell / CommandInputTest.java
index c3c8d98530a6902fb896bbb0a22e31739dfb8d39..7235a8adc5048f605864ca88b0c2cec069f3cefc 100644 (file)
@@ -19,7 +19,6 @@ import java.util.Arrays;
 import java.util.List;
 
 import org.eclipse.jdt.annotation.NonNull;
-import org.eclipse.tracecompass.common.core.NonNullUtils;
 import org.eclipse.tracecompass.internal.tmf.remote.core.shell.CommandInput;
 import org.eclipse.tracecompass.tmf.remote.core.shell.ICommandInput;
 import org.junit.Test;
@@ -30,7 +29,7 @@ import org.junit.Test;
 public class CommandInputTest {
 
     private static final @NonNull String COMMAND = "my-command";
-    private static final String @NonNull [] CMD_INPUT = { "This", "are", "the", "params" };
+    private static final @NonNull String @NonNull [] CMD_INPUT = { "This", "are", "the", "params" };
 
     /**
      * Test suite for the {@link CommandInput#add(String)} and {@link CommandInput#addAll(List)}
@@ -39,8 +38,8 @@ public class CommandInputTest {
     public void testConstructorAndAdd() {
         ICommandInput iunput = new CommandInput();
         iunput.add(COMMAND);
-        List<String> params = Arrays.asList(CMD_INPUT);
-        iunput.addAll(NonNullUtils.checkNotNull(params));
+        @NonNull List<@NonNull String> params = Arrays.asList(CMD_INPUT);
+        iunput.addAll(params);
 
         List<String> expectedList = new ArrayList<>();
         expectedList.add(COMMAND);
This page took 0.032104 seconds and 5 git commands to generate.