diff options
author | Mark Wielaard <mark@klomp.org> | 2002-07-16 21:08:25 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2002-07-16 21:08:25 +0000 |
commit | 00e0a9e83de7e15ab213b09745c3bbd433516e11 (patch) | |
tree | 3e380de728b702efb4e4e65f00f56b0e894af5b0 /libjava/java/io | |
parent | e5faf155c998506b01863c13fb6daa6d4f589f8f (diff) | |
download | gcc-00e0a9e83de7e15ab213b09745c3bbd433516e11.zip gcc-00e0a9e83de7e15ab213b09745c3bbd433516e11.tar.gz gcc-00e0a9e83de7e15ab213b09745c3bbd433516e11.tar.bz2 |
StreamTokenizer.java (pushBack): Update documentation.
* java/io/StreamTokenizer.java (pushBack): Update documentation.
(whitespaceChars): call resetChar().
From-SVN: r55496
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/StreamTokenizer.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libjava/java/io/StreamTokenizer.java b/libjava/java/io/StreamTokenizer.java index f2e3969..5b3533b 100644 --- a/libjava/java/io/StreamTokenizer.java +++ b/libjava/java/io/StreamTokenizer.java @@ -1,5 +1,5 @@ /* StreamTokenizer.java -- parses streams of characters into tokens - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation + Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation This file is part of GNU Classpath. @@ -554,16 +554,13 @@ public class StreamTokenizer } /** - * This method returns the current line number. Note that if the - * <code>pushBack()</code> method is called, it has no effect on the - * line number returned by this method. - * - * @return The current line number + * Puts the current token back into the StreamTokenizer so + * <code>nextToken</code> will return the same value on the next call. + * May cause the lineno method to return an incorrect value + * if lineno is called before the next call to nextToken. */ public void pushBack() { - // pushBack may cause the lineno method to return an incorrect value - // if lineno is called before the next call to nextToken. pushedBack = true; } @@ -670,7 +667,10 @@ public class StreamTokenizer if (hi > 255) hi = 255; for (int i = low; i <= hi; i++) - whitespace[i] = true; + { + resetChar(i); + whitespace[i] = true; + } } /** |