This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: java.io.Printwriter


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;
-      }
   }
 
   /**

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]