Skip to content

Commit 448c507

Browse files
marvin-enthusjvalkeal
authored andcommitted
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
1 parent 95e2829 commit 448c507

File tree

1 file changed

+1
-1
lines changed
  • spring-shell-core/src/main/java/org/springframework/shell

1 file changed

+1
-1
lines changed

spring-shell-core/src/main/java/org/springframework/shell/Shell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ else if (processExceptionNonInt != null && processExceptionNonInt.exitCode() !=
190190
* result
191191
* </p>
192192
*/
193-
private Object evaluate(Input input) {
193+
protected Object evaluate(Input input) {
194194
if (noInput(input)) {
195195
return NO_INPUT;
196196
}

0 commit comments

Comments
 (0)