This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: java.io.Printwriter
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: java.io.Printwriter
- From: Mark Wielaard <mark at klomp dot org>
- Date: Thu, 24 Aug 2000 00:06:51 +0200
Hi,
I just checked in the following patch into Classpath.
OK to check into libgcj?
2000-08-23 Mark Wielaard <mark@klomp.org>
* java/io/PrintWriter.java (print(String)): Don't catch IOException,
write(String) already does.
Cheers,
Mark
Index: java/io/PrintWriter.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/io/PrintWriter.java,v
retrieving revision 1.5
diff -u -r1.5 PrintWriter.java
--- PrintWriter.java 2000/08/06 01:54:07 1.5
+++ PrintWriter.java 2000/08/23 22:04:14
@@ -171,14 +171,7 @@
*/
public void print(String str)
{
- try
- {
write(str == null ? "null" : str);
- }
- catch (IOException ex)
- {
- error = true;
- }
}
/**