Commit 8fec62b1 by Tom Tromey Committed by Tom Tromey

OutputStreamWriter.java (close): Only flush if not closed.

	* java/io/OutputStreamWriter.java (close): Only flush if not
	closed.

From-SVN: r35309
parent 1670d1ea
2000-07-27 Tom Tromey <tromey@cygnus.com>
* java/io/OutputStreamWriter.java (close): Only flush if not
closed.
2000-07-27 Warren Levy <warrenl@cygnus.com>
* mauve-libgcj: Activated serialization tests.
......
/* Copyright (C) 1998, 1999 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
......@@ -55,9 +55,9 @@ public class OutputStreamWriter extends Writer
{
synchronized (lock)
{
flush();
if (out != null)
{
flush();
out.close();
out = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment