mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
npe fix, api cleanup
This commit is contained in:
@@ -22,7 +22,7 @@ import com.intellij.openapi.editor.colors.EditorColorsManager;
|
||||
import com.intellij.openapi.editor.colors.TextAttributesKey;
|
||||
import com.intellij.openapi.editor.markup.TextAttributes;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
@@ -49,12 +49,12 @@ public class ColoredProcessHandler extends OSProcessHandler {
|
||||
}
|
||||
|
||||
public ColoredProcessHandler(Process process, String commandLine) {
|
||||
this(process, commandLine, null);
|
||||
super(process, commandLine);
|
||||
}
|
||||
|
||||
public ColoredProcessHandler(final Process process,
|
||||
final String commandLine,
|
||||
@Nullable final Charset charset) {
|
||||
@NotNull final Charset charset) {
|
||||
super(process, commandLine, charset);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ package com.intellij.execution.process;
|
||||
|
||||
import com.intellij.execution.KillableProcess;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.nio.charset.Charset;
|
||||
* P.S: probably OSProcessHandler is better place for this feature but it can affect other run configurations and should be tested
|
||||
*/
|
||||
public class KillableColoredProcessHandler extends ColoredProcessHandler implements KillableProcess {
|
||||
public KillableColoredProcessHandler(final Process process, final String commandLine, @Nullable final Charset charset) {
|
||||
public KillableColoredProcessHandler(final Process process, final String commandLine, @NotNull final Charset charset) {
|
||||
super(process, commandLine, charset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user