Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Sicker <boards@gmail.com>
  • Loading branch information
jvz authored and dependabot[bot] committed Feb 10, 2021
1 parent eb7f1ab commit f0e2150
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
import java.util.Stack;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
Expand Down Expand Up @@ -430,7 +430,7 @@ public static CredentialsMatcher parse(final String cql) {
return always();
}

CQLLexer lexer = new CQLLexer(new ANTLRInputStream(cql));
CQLLexer lexer = new CQLLexer(CharStreams.fromString(cql));

CommonTokenStream tokens = new CommonTokenStream(lexer);

Expand Down

0 comments on commit f0e2150

Please sign in to comment.