This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: StringWriter nit
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: StringWriter nit
- From: Tom Tromey <tromey at redhat dot com>
- Date: 14 Dec 2000 23:22:43 -0700
- Reply-To: tromey at redhat dot com
I'm checking this in. It fixes a buglet in StringWriter.
2000-12-14 Tom Tromey <tromey@redhat.com>
* java/io/StringWriter.java (StringWriter(int)): Now public.
Tom
Index: java/io/StringWriter.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/io/StringWriter.java,v
retrieving revision 1.3
diff -u -r1.3 StringWriter.java
--- StringWriter.java 2000/03/07 19:55:26 1.3
+++ StringWriter.java 2000/12/15 06:08:10
@@ -1,6 +1,6 @@
// StringWriter.java - StringBuffer output stream
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -17,7 +17,7 @@
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
* "The Java Language Specification", ISBN 0-201-63451-1
- * Status: Complete to 1.1.
+ * Status: Complete to 1.2.
*/
public class StringWriter extends Writer
@@ -25,7 +25,7 @@
public void close ()
{
// JCL says this does nothing. This seems to violate the Writer
- // contract, in that other methods should still throw and
+ // contract, in that other methods should still throw an
// IOException after a close. Still, we just follow JCL.
}
@@ -43,7 +43,7 @@
this (16);
}
- protected StringWriter (int size)
+ public StringWriter (int size)
{
super ();
buffer = new StringBuffer (size);