Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Postgres][Imporve] Change the var keyword to the Java base class ProxyErrorListener #4168

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sql/postgresql/Java/LexerDispatchingErrorListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public LexerDispatchingErrorListener(Lexer parent)

public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.syntaxError(recognizer, offendingSymbol, line, charPositionInLine, msg, e);
}

Expand All @@ -48,7 +48,7 @@ public void reportAmbiguity(Parser recognizer,
BitSet ambigAlts,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs);
}

Expand All @@ -59,7 +59,7 @@ public void reportAttemptingFullContext(Parser recognizer,
BitSet conflictingAlts,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs);
}

Expand All @@ -70,7 +70,7 @@ public void reportContextSensitivity(Parser recognizer,
int prediction,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs);
}
}
6 changes: 3 additions & 3 deletions sql/postgresql/Java/ParserDispatchingErrorListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void reportAmbiguity(Parser recognizer,
BitSet ambigAlts,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs);
}

Expand All @@ -59,7 +59,7 @@ public void reportAttemptingFullContext(Parser recognizer,
BitSet conflictingAlts,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs);
}

Expand All @@ -70,7 +70,7 @@ public void reportContextSensitivity(Parser recognizer,
int prediction,
ATNConfigSet configs)
{
var foo = new ProxyErrorListener(_parent.getErrorListeners());
ProxyErrorListener foo = new ProxyErrorListener(_parent.getErrorListeners());
foo.reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs);
}
}
Loading