From 1e71e216f18c1c3413c47bbb01f1f011f6277218 Mon Sep 17 00:00:00 2001 From: Christian Niessner Date: Wed, 11 Jan 2023 20:36:16 +0100 Subject: [PATCH] Allow Shell.input() to be overridden in subclasses - the ssh-shell-spring-boot extensions needs to extend to override the Shell.input() method to handle the input provided via the SSH session properly --- .../src/main/java/org/springframework/shell/Shell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java index 9b4a43506..fd73323eb 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java @@ -190,7 +190,7 @@ else if (processExceptionNonInt != null && processExceptionNonInt.exitCode() != * result *

*/ - private Object evaluate(Input input) { + protected Object evaluate(Input input) { if (noInput(input)) { return NO_INPUT; }