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;
}
@Override
- public void addAll(List<String> segments) {
+ public void addAll(@NonNull List<String> segments) {
for (String segment : segments) {
add(segment);
}
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;
}
@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