mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 14:39:29 +08:00
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:
parent
1670d1ea21
commit
8fec62b138
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user