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,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;
}