From 78d8002303af1195329102ff5c53849158aec44f Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Sat, 4 Aug 2012 21:34:42 -0700 Subject: [PATCH] allow atn state optimization; sam fixed. --- tool/src/org/antlr/v4/automata/ATNOptimizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/src/org/antlr/v4/automata/ATNOptimizer.java b/tool/src/org/antlr/v4/automata/ATNOptimizer.java index ee38884ec..032df79d4 100644 --- a/tool/src/org/antlr/v4/automata/ATNOptimizer.java +++ b/tool/src/org/antlr/v4/automata/ATNOptimizer.java @@ -57,7 +57,7 @@ public class ATNOptimizer { public static void optimize(@NotNull Grammar g, @NotNull ATN atn) { optimizeSets(g, atn); -// optimizeStates(atn); // TODO leads to class cast exception + optimizeStates(atn); } private static void optimizeSets(Grammar g, ATN atn) {