Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.remote.core / src / org / eclipse / tracecompass / internal / tmf / remote / core / shell / CommandResult.java
index 8bc9d4ab12af621b11282c69685d9e73b2f740be..27e8b5a811864fcf8553468bad3e58589b3affbf 100644 (file)
  **********************************************************************/
 package org.eclipse.tracecompass.internal.tmf.remote.core.shell;
 
-import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
 import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString;
 
 import java.util.List;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.eclipse.tracecompass.tmf.remote.core.shell.ICommandResult;
 
@@ -55,10 +55,10 @@ public class CommandResult implements ICommandResult {
      * @param errorOutput
      *            THe error output as an array of strings
      */
-    public CommandResult(int result, String[] output, String[] errorOutput) {
+    public CommandResult(int result, @NonNull String[] output, @NonNull String[] errorOutput) {
         fResult = result;
-        fOutput = checkNotNull(ImmutableList.copyOf(output));
-        fErrorOutput = checkNotNull(ImmutableList.copyOf(errorOutput));
+        fOutput = ImmutableList.copyOf(output);
+        fErrorOutput = ImmutableList.copyOf(errorOutput);
     }
 
     // ------------------------------------------------------------------------
This page took 0.02412 seconds and 5 git commands to generate.