Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2015-03-04 01:48:24 +0000
committerBernd Hufmann2015-03-04 02:27:57 +0000
commitf4648c68ad5a7c0357f563c39caaea900aff66b3 (patch)
tree2404417c3af0dbd32dda4dbe7a59c0fc7d9a33f3
parentb2f62cb5a7dbd04cc03bc58e23a6f26f91eaea60 (diff)
downloadorg.eclipse.tracecompass-f4648c68ad5a7c0357f563c39caaea900aff66b3.tar.gz
org.eclipse.tracecompass-f4648c68ad5a7c0357f563c39caaea900aff66b3.tar.xz
org.eclipse.tracecompass-f4648c68ad5a7c0357f563c39caaea900aff66b3.zip
Explicitely add @NonNull to inherited parameters
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>
-rw-r--r--org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java3
-rw-r--r--org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java
index baac253212..94891d03af 100644
--- a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java
+++ b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandInput.java
@@ -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);
}
diff --git a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java
index a678b9168c..f72629f7c7 100644
--- a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java
+++ b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/internal/tmf/remote/core/shell/CommandShell.java
@@ -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

Back to the top