Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 672c528

Browse files
authored
Merge pull request #48 from gatling/antlr
Drop deprecated ANTLRInputStream usage
2 parents 1cf280d + 48f3274 commit 672c528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jmespath-core/src/main/java/io/burt/jmespath/util/AntlrHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.burt.jmespath.util;
22

33
import org.antlr.v4.runtime.ANTLRErrorListener;
4-
import org.antlr.v4.runtime.ANTLRInputStream;
4+
import org.antlr.v4.runtime.CharStreams;
55
import org.antlr.v4.runtime.CommonTokenStream;
66
import org.antlr.v4.runtime.ConsoleErrorListener;
77

@@ -12,7 +12,7 @@ public class AntlrHelper {
1212
private AntlrHelper() { }
1313

1414
private static JmesPathLexer createLexer(String input, ANTLRErrorListener errorListener) {
15-
JmesPathLexer lexer = new JmesPathLexer(new ANTLRInputStream(input));
15+
JmesPathLexer lexer = new JmesPathLexer(CharStreams.fromString(input));
1616
lexer.removeErrorListener(ConsoleErrorListener.INSTANCE);
1717
lexer.addErrorListener(errorListener);
1818
return lexer;

0 commit comments

Comments
 (0)