BufferedReader.java (skip): Removed unused variable.

2004-05-05  Tom Tromey  <tromey@redhat.com>

	* java/io/BufferedReader.java (skip): Removed unused
	variable.

From-SVN: r81511
This commit is contained in:
Tom Tromey 2004-05-05 08:24:13 +00:00 committed by Michael Koch
parent 7c62e9932f
commit a54f498a27
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-05-05 Tom Tromey <tromey@redhat.com>
* java/io/BufferedReader.java (skip): Removed unused
variable.
2004-05-05 Michael Koch <konqueror@gmx.de>
* java/awt/FileDialog.java: Import java.io.Serializable explicitly.

View File

@ -533,12 +533,13 @@ public class BufferedReader extends Reader
// skip the '\n' for us). By doing this, we'll have to back up pos.
// That's easier than trying to keep track of whether we've skipped
// one element or not.
int ch;
if (pos > limit)
if ((ch = read()) < 0)
return 0;
else
--pos;
{
if (read() < 0)
return 0;
else
--pos;
}
int avail = limit - pos;