diff options
Diffstat (limited to 'libjava/java/io/BufferedWriter.java')
-rw-r--r-- | libjava/java/io/BufferedWriter.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libjava/java/io/BufferedWriter.java b/libjava/java/io/BufferedWriter.java index 371c496..732f7bb 100644 --- a/libjava/java/io/BufferedWriter.java +++ b/libjava/java/io/BufferedWriter.java @@ -216,15 +216,13 @@ public class BufferedWriter extends Writer } } + // This should only be called with the lock held. private final void localFlush () throws IOException { if (count > 0) { - synchronized (lock) - { - out.write(buffer, 0, count); - count = 0; - } + out.write(buffer, 0, count); + count = 0; } } |