Explicitely add @NonNull to inherited parameters
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Wed, 4 Mar 2015 01:48:24 +0000 (20:48 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Wed, 4 Mar 2015 02:27:57 +0000 (21:27 -0500)
Change-Id: I3fb5cc13bbc1d549579cf331db2a539241ada8ae
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/43123
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java
org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java

index baac253212e56b9441dcca806130448eac9ad7fd..94891d03afd174f6705f1432919126d480849106 100644 (file)
@@ -17,6 +17,7 @@ import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyStrin
 import java.util.ArrayList;
 import java.util.List;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.eclipse.tracecompass.tmf.remote.core.shell.ICommandInput;
 
@@ -55,7 +56,7 @@ public class CommandInput implements ICommandInput {
     }
 
     @Override
-    public void addAll(List<String> segments) {
+    public void addAll(@NonNull List<String> segments) {
         for (String segment : segments) {
             add(segment);
         }
index a678b9168ca27bdbaefe5894c13cdf2b6f4b912b..f72629f7c7133b90db91e5779ae8304ffb1f8b58 100644 (file)
@@ -28,6 +28,7 @@ import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.eclipse.remote.core.IRemoteConnection;
 import org.eclipse.remote.core.IRemoteProcess;
@@ -82,7 +83,7 @@ public class CommandShell implements ICommandShell {
     }
 
     @Override
-    public ICommandResult executeCommand(final ICommandInput command, @Nullable final IProgressMonitor aMonitor) throws ExecutionException {
+    public ICommandResult executeCommand(final @NonNull ICommandInput command, @Nullable final IProgressMonitor aMonitor) throws ExecutionException {
         if (fConnection.isOpen()) {
             FutureTask<CommandResult> future = new FutureTask<>(new Callable<CommandResult>() {
                 @Override
This page took 0.027172 seconds and 5 git commands to generate.