diff --git a/platform/platform-util-io/src/com/intellij/execution/process/ProcessOutput.java b/platform/platform-util-io/src/com/intellij/execution/process/ProcessOutput.java index cda9704dcdd4..c9e1523816f7 100644 --- a/platform/platform-util-io/src/com/intellij/execution/process/ProcessOutput.java +++ b/platform/platform-util-io/src/com/intellij/execution/process/ProcessOutput.java @@ -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 getStdoutLines() { + public @NotNull List getStdoutLines() { return getStdoutLines(true); } - @NotNull - public List getStdoutLines(boolean excludeEmptyLines) { + public @NotNull List getStdoutLines(boolean excludeEmptyLines) { return splitLines(getStdout(), excludeEmptyLines); } - @NotNull - public List getStderrLines() { + public @NotNull List getStderrLines() { return getStderrLines(true); } - @NotNull - public List getStderrLines(boolean excludeEmptyLines) { + public @NotNull List getStderrLines(boolean excludeEmptyLines) { return splitLines(getStderr(), excludeEmptyLines); }