From 27a8e5e521f284535d6e363b2d402f6ea7f0801a Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Thu, 11 Oct 2012 18:51:58 -0700 Subject: [PATCH] update comment on consume() --- runtime/Java/src/org/antlr/v4/runtime/IntStream.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/IntStream.java b/runtime/Java/src/org/antlr/v4/runtime/IntStream.java index 0b0ca6ff8..53166ee2b 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/IntStream.java +++ b/runtime/Java/src/org/antlr/v4/runtime/IntStream.java @@ -79,9 +79,9 @@ public interface IntStream { * filtering streams (e.g. {@link CommonTokenStream} which distinguishes * between "on-channel" and "off-channel" tokens). * - * @throws IllegalStateException if an attempt is made to consume the the - * end of the stream (i.e. if {@code LA(1)==}{@link #EOF EOF} before calling - * {@code consume}). + * @throws IllegalStateException if an attempt is made to consume past + * end of the stream (i.e. if last char == {@link #EOF EOF} before calling + * {@code consume}). Sometimes need to match EOF during prediction. */ void consume();