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

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

From-SVN: r35309
This commit is contained in:
Tom Tromey 2000-07-28 02:54:16 +00:00 committed by Tom Tromey
parent 1670d1ea21
commit 8fec62b138
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,4 +1,4 @@
/* 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;
}