summaryrefslogtreecommitdiffstats
path: root/libjava/java/io/StringWriter.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-04 21:07:15 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-04 21:07:15 +0000
commitc6e991f33b056d116ee88ee34256fba1715be6df (patch)
tree72d5928714e5c9a82757621321b77e127a1e4e4a /libjava/java/io/StringWriter.java
parent9981529f6484f038d9ba3a700ce75dabdfc46dc4 (diff)
downloadppe42-gcc-c6e991f33b056d116ee88ee34256fba1715be6df.tar.gz
ppe42-gcc-c6e991f33b056d116ee88ee34256fba1715be6df.zip
* java/io/PipedOutputStream.java (flush): Declare as throwing
IOException. (close): Likewise. * java/io/PipedWriter.java (close): Declare as throwing IOException. * java/io/StringWriter.java (close): Declare as throwing IOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/StringWriter.java')
-rw-r--r--libjava/java/io/StringWriter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/io/StringWriter.java b/libjava/java/io/StringWriter.java
index edf85715612..660ef166a2e 100644
--- a/libjava/java/io/StringWriter.java
+++ b/libjava/java/io/StringWriter.java
@@ -1,5 +1,5 @@
/* StringWriter.java -- Writes bytes to a StringBuffer
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -61,7 +61,7 @@ public class StringWriter extends Writer
* This method closes the stream. The contents of the internal buffer
* can still be retrieved, but future writes are not guaranteed to work.
*/
- public void close ()
+ public void close () throws IOException
{
// JCL says this does nothing. This seems to violate the Writer
// contract, in that other methods should still throw an
OpenPOWER on IntegriCloud