Commit 00e0a9e8 by Mark Wielaard Committed by Mark Wielaard

StreamTokenizer.java (pushBack): Update documentation.

	* java/io/StreamTokenizer.java (pushBack): Update documentation.
	(whitespaceChars): call resetChar().

From-SVN: r55496
parent e5faf155
2002-07-16 Mark Wielaard <mark@klomp.org>
* java/io/StreamTokenizer.java (pushBack): Update documentation.
(whitespaceChars): call resetChar().
2002-07-15 Tom Tromey <tromey@redhat.com> 2002-07-15 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
/* StreamTokenizer.java -- parses streams of characters into tokens /* 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. This file is part of GNU Classpath.
...@@ -554,16 +554,13 @@ public class StreamTokenizer ...@@ -554,16 +554,13 @@ public class StreamTokenizer
} }
/** /**
* This method returns the current line number. Note that if the * Puts the current token back into the StreamTokenizer so
* <code>pushBack()</code> method is called, it has no effect on the * <code>nextToken</code> will return the same value on the next call.
* line number returned by this method. * May cause the lineno method to return an incorrect value
* * if lineno is called before the next call to nextToken.
* @return The current line number
*/ */
public void pushBack() 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; pushedBack = true;
} }
...@@ -670,7 +667,10 @@ public class StreamTokenizer ...@@ -670,7 +667,10 @@ public class StreamTokenizer
if (hi > 255) if (hi > 255)
hi = 255; hi = 255;
for (int i = low; i <= hi; i++) for (int i = low; i <= hi; i++)
whitespace[i] = true; {
resetChar(i);
whitespace[i] = true;
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment