mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-247635 ProcessOutput NlsSafe
IDEA-CR-66127 GitOrigin-RevId: 7d767dbc3fb550c237512410193d02db23baaed3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a60e4cc11c
commit
6edc93935b
@@ -2,6 +2,7 @@
|
||||
package com.intellij.execution.process;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -29,27 +30,27 @@ public class ProcessOutput {
|
||||
myStderrBuilder.append(text);
|
||||
}
|
||||
|
||||
public @NotNull String getStdout() {
|
||||
public @NotNull @NlsSafe String getStdout() {
|
||||
return myStdoutBuilder.toString();
|
||||
}
|
||||
|
||||
public @NotNull String getStderr() {
|
||||
public @NotNull @NlsSafe String getStderr() {
|
||||
return myStderrBuilder.toString();
|
||||
}
|
||||
|
||||
public @NotNull List<String> getStdoutLines() {
|
||||
public @NotNull List<@NlsSafe String> getStdoutLines() {
|
||||
return getStdoutLines(true);
|
||||
}
|
||||
|
||||
public @NotNull List<String> getStdoutLines(boolean excludeEmptyLines) {
|
||||
public @NotNull List<@NlsSafe String> getStdoutLines(boolean excludeEmptyLines) {
|
||||
return splitLines(getStdout(), excludeEmptyLines);
|
||||
}
|
||||
|
||||
public @NotNull List<String> getStderrLines() {
|
||||
public @NotNull List<@NlsSafe String> getStderrLines() {
|
||||
return getStderrLines(true);
|
||||
}
|
||||
|
||||
public @NotNull List<String> getStderrLines(boolean excludeEmptyLines) {
|
||||
public @NotNull List<@NlsSafe String> getStderrLines(boolean excludeEmptyLines) {
|
||||
return splitLines(getStderr(), excludeEmptyLines);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user