mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
not-null
This commit is contained in:
@@ -22,7 +22,7 @@ import com.intellij.openapi.actionSystem.AnAction;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface ConsoleView extends ExecutionConsole {
|
||||
void print(String s, ConsoleViewContentType contentType);
|
||||
void print(@NotNull String s, @NotNull ConsoleViewContentType contentType);
|
||||
|
||||
void clear();
|
||||
|
||||
|
||||
@@ -528,7 +528,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
|
||||
}
|
||||
|
||||
@Override
|
||||
public void print(String s, final ConsoleViewContentType contentType) {
|
||||
public void print(@NotNull String s, @NotNull ConsoleViewContentType contentType) {
|
||||
if (myInputMessageFilter == null) {
|
||||
printHyperlink(s, contentType, null);
|
||||
return;
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ public class SMTRunnerConsoleView extends BaseTestsOutputConsoleView {
|
||||
* @param contentType given type
|
||||
*/
|
||||
@Override
|
||||
public void print(final String s, final ConsoleViewContentType contentType) {
|
||||
public void print(@NotNull final String s, @NotNull final ConsoleViewContentType contentType) {
|
||||
myResultsViewer.getRoot().addLast(new Printable() {
|
||||
public void printOn(final Printer printer) {
|
||||
printer.print(s, contentType);
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public abstract class BaseTestsOutputConsoleView implements ConsoleView, Observa
|
||||
myConsole.attachToProcess(processHandler);
|
||||
}
|
||||
|
||||
public void print(final String s, final ConsoleViewContentType contentType) {
|
||||
public void print(@NotNull final String s, @NotNull final ConsoleViewContentType contentType) {
|
||||
printNew(new Printable() {
|
||||
public void printOn(final Printer printer) {
|
||||
printer.print(s, contentType);
|
||||
|
||||
@@ -186,7 +186,7 @@ public class PythonConsoleView extends JPanel implements LanguageConsoleView, Ob
|
||||
myLanguageConsoleView.print(text, outputType);
|
||||
}
|
||||
|
||||
public void print(String text, final ConsoleViewContentType outputType) {
|
||||
public void print(@NotNull String text, @NotNull final ConsoleViewContentType outputType) {
|
||||
detectIPython(text, outputType);
|
||||
if (PyConsoleUtil.detectIPythonEnd(text)) {
|
||||
myIsIPythonOutput = false;
|
||||
|
||||
@@ -141,7 +141,7 @@ public class PythonDebugLanguageConsoleView extends JPanel implements ConsoleVie
|
||||
}
|
||||
|
||||
@Override
|
||||
public void print(String s, ConsoleViewContentType contentType) {
|
||||
public void print(@NotNull String s, @NotNull ConsoleViewContentType contentType) {
|
||||
myPydevConsoleView.print(s, contentType);
|
||||
myTextConsole.print(s, contentType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user