From ba9f5d54e727a9c88c62e67fefa0a26bb9896377 Mon Sep 17 00:00:00 2001 From: parrt Date: Fri, 22 Jul 2011 18:18:43 -0800 Subject: [PATCH] tweak [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8900] --- .../org/antlr/v4/tool/templates/codegen/Java/Java.stg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0ee712a3b..094541992 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 @@ -60,7 +60,7 @@ public class extends Parser { public void _action(RuleContext _localctx, int ruleIndex, int predIndex) { - switch ( predIndex ) { + switch ( ruleIndex ) { : _action(()_localctx, predIndex);}; separator="\n"> } @@ -69,7 +69,7 @@ case : _action(()_localctx, predIndex);}; separ public boolean _sempred(RuleContext _localctx, int ruleIndex, int predIndex) { - switch ( predIndex ) { + switch ( ruleIndex ) { : return _sempred(()_localctx, predIndex);}; separator="\n"> }