From 45dc683a91de4b683a2ba073c82c8e2811b6399f Mon Sep 17 00:00:00 2001 From: parrt Date: Tue, 22 Nov 2011 12:30:53 -0800 Subject: [PATCH] tweak [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9424] --- .../org/antlr/v4/runtime/atn/LexerATNSimulator.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java index b3cca281c..5e099fbcc 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java @@ -30,8 +30,11 @@ package org.antlr.v4.runtime.atn; import org.antlr.v4.runtime.*; -import org.antlr.v4.runtime.dfa.*; -import org.antlr.v4.runtime.misc.*; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.dfa.DFAState; +import org.antlr.v4.runtime.misc.NotNull; +import org.antlr.v4.runtime.misc.Nullable; +import org.antlr.v4.runtime.misc.OrderedHashSet; /** "dup" of ParserInterpreter */ public class LexerATNSimulator extends ATNSimulator { @@ -161,7 +164,8 @@ public class LexerATNSimulator extends ATNSimulator { int predict = exec(input, s0_closure); if ( debug ) System.out.println("DFA after matchATN: "+dfa[old_mode].toLexerString()); return predict; - } finally { + } + finally { if (mark >= 0) { input.release(mark); }