mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-247635 ProcessOutput sorted modifiers
IDEA-CR-66127 GitOrigin-RevId: c2e4b569a1330f2c1088c5314c140f3b34d1de5a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c8ffce8cea
commit
a60e4cc11c
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.execution.process;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
@@ -8,9 +8,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class ProcessOutput {
|
||||
private final StringBuilder myStdoutBuilder = new StringBuilder();
|
||||
private final StringBuilder myStderrBuilder = new StringBuilder();
|
||||
@@ -32,33 +29,27 @@ public class ProcessOutput {
|
||||
myStderrBuilder.append(text);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getStdout() {
|
||||
public @NotNull String getStdout() {
|
||||
return myStdoutBuilder.toString();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getStderr() {
|
||||
public @NotNull String getStderr() {
|
||||
return myStderrBuilder.toString();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getStdoutLines() {
|
||||
public @NotNull List<String> getStdoutLines() {
|
||||
return getStdoutLines(true);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getStdoutLines(boolean excludeEmptyLines) {
|
||||
public @NotNull List<String> getStdoutLines(boolean excludeEmptyLines) {
|
||||
return splitLines(getStdout(), excludeEmptyLines);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getStderrLines() {
|
||||
public @NotNull List<String> getStderrLines() {
|
||||
return getStderrLines(true);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getStderrLines(boolean excludeEmptyLines) {
|
||||
public @NotNull List<String> getStderrLines(boolean excludeEmptyLines) {
|
||||
return splitLines(getStderr(), excludeEmptyLines);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user