This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: java.io.BufferedReader merged
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 5 May 2004 10:24:35 +0200
- Subject: Patch: java.io.BufferedReader merged
Hi list,
I just merged the attached patch from GNU classpath.
Michael
2004-05-05 Tom Tromey <tromey@redhat.com>
* java/io/BufferedReader.java (skip): Removed unused
variable.
Index: java/io/BufferedReader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/BufferedReader.java,v
retrieving revision 1.18
diff -u -r1.18 BufferedReader.java
--- java/io/BufferedReader.java 19 Mar 2004 22:46:09 -0000 1.18
+++ java/io/BufferedReader.java 5 May 2004 08:22:44 -0000
@@ -533,12 +533,13 @@
// 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;