From ffbd88b86077f8e725200a7099353f098f7c1f04 Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Sat, 18 Dec 2021 13:35:11 +0000 Subject: [PATCH] Update jline 3.21.0 - Fixes #331 --- pom.xml | 2 +- .../shell/LineReaderAutoConfiguration.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b89abf45..55c90a96 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ - 3.4.0 + 3.21.0 3.8.0 1.8 1.81 diff --git a/spring-shell-core/src/main/java/org/springframework/shell/LineReaderAutoConfiguration.java b/spring-shell-core/src/main/java/org/springframework/shell/LineReaderAutoConfiguration.java index 933d71f3..6a6aec41 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/LineReaderAutoConfiguration.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/LineReaderAutoConfiguration.java @@ -17,6 +17,7 @@ package org.springframework.shell; import java.io.IOException; import java.nio.file.Paths; +import java.util.regex.Pattern; import org.jline.reader.Completer; import org.jline.reader.Highlighter; @@ -87,6 +88,14 @@ public class LineReaderAutoConfiguration { return new AttributedString(buffer, AttributedStyle.DEFAULT.foreground(AttributedStyle.RED)); } } + + @Override + public void setErrorPattern(Pattern errorPattern) { + } + + @Override + public void setErrorIndex(int errorIndex) { + } }) .parser(parser);