use correct collection type in API

GitOrigin-RevId: 64a2073d0ded9f2cc7a952b221f7ae2464eb49e1
This commit is contained in:
Alexey Kudravtsev
2020-03-02 13:31:17 +00:00
committed by intellij-monorepo-bot
parent 66f8f8724e
commit 3c4d2bcc95
4 changed files with 7 additions and 7 deletions
@@ -43,7 +43,7 @@ public class ColoredProcessHandler extends KillableProcessHandler implements Ans
/**
* {@code commandLine} must not be not empty (for correct thread attribution in the stacktrace)
*/
public ColoredProcessHandler(@NotNull Process process, /*@NotNull*/ String commandLine, @NotNull Charset charset, @Nullable Set<File> filesToDelete) {
public ColoredProcessHandler(@NotNull Process process, /*@NotNull*/ String commandLine, @NotNull Charset charset, @Nullable Set<? extends File> filesToDelete) {
super(process, commandLine, charset, filesToDelete);
setShouldKillProcessSoftly(false);
}
@@ -52,7 +52,7 @@ public class KillableColoredProcessHandler extends ColoredProcessHandler impleme
*/
public KillableColoredProcessHandler(@NotNull Process process, /*@NotNull*/ String commandLine,
@NotNull Charset charset,
@Nullable Set<File> filesToDelete) {
@Nullable Set<? extends File> filesToDelete) {
super(process, commandLine, charset, filesToDelete);
setShouldKillProcessSoftly(true);
}
@@ -69,7 +69,7 @@ public class KillableColoredProcessHandler extends ColoredProcessHandler impleme
super(commandLine);
}
public Silent(@NotNull Process process, String commandLine, @NotNull Charset charset, @Nullable Set<File> filesToDetele) {
public Silent(@NotNull Process process, String commandLine, @NotNull Charset charset, @Nullable Set<? extends File> filesToDetele) {
super(process, commandLine, charset, filesToDetele);
}
@@ -66,7 +66,7 @@ public class KillableProcessHandler extends OSProcessHandler implements Killable
public KillableProcessHandler(@NotNull Process process, /*@NotNull*/
String commandLine,
@NotNull Charset charset,
@Nullable Set<File> filesToDelete) {
@Nullable Set<? extends File> filesToDelete) {
super(process, commandLine, charset, filesToDelete);
myMediatedProcess = false;
}
@@ -34,13 +34,13 @@ public class OSProcessHandler extends BaseOSProcessHandler {
private static final Set<String> REPORTED_EXECUTIONS = ContainerUtil.newConcurrentSet();
private static final long ALLOWED_TIMEOUT_THRESHOLD = 10;
static final Key<Set<File>> DELETE_FILES_ON_TERMINATION = Key.create("OSProcessHandler.FileToDelete");
private static final Key<Set<File>> DELETE_FILES_ON_TERMINATION = Key.create("OSProcessHandler.FileToDelete");
private final boolean myHasErrorStream;
private final ModalityState myModality;
private boolean myHasPty;
private boolean myDestroyRecursively = true;
private final Set<File> myFilesToDelete;
private final Set<? extends File> myFilesToDelete;
public OSProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException {
super(startProcess(commandLine), commandLine.getCommandLineString(), commandLine.getCharset());
@@ -84,7 +84,7 @@ public class OSProcessHandler extends BaseOSProcessHandler {
/**
* {@code commandLine} must not be empty (for correct thread attribution in the stacktrace)
*/
public OSProcessHandler(@NotNull Process process, /*@NotNull*/ String commandLine, @Nullable Charset charset, @Nullable Set<File> filesToDelete) {
public OSProcessHandler(@NotNull Process process, /*@NotNull*/ String commandLine, @Nullable Charset charset, @Nullable Set<? extends File> filesToDelete) {
super(process, commandLine, charset);
setHasPty(isPtyProcess(process));
myFilesToDelete = filesToDelete;