From 94c33074be75be2f43bf96bb227f8ae9091fbe40 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sun, 11 Nov 2012 11:36:39 -0600 Subject: [PATCH] Avoid unnecessary call to TokenStream.LT --- .../resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index 8a045c69e..151e3e242 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -468,7 +468,7 @@ MatchNotSet(m, expr, capture) ::= "" CommonSetStuff(m, expr, capture, invert) ::= << setState(); - = }>_input.LT(1); + = }>_input.LT(1); if ( \<= 0 || !() ) { = (Token)}>_errHandler.recoverInline(this);