summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2014-02-26 12:02:28 +0000
committerPaul Duffin <paulduffin@google.com>2014-02-26 12:02:28 +0000
commit50cf702adbc10d34e6488786870c4a500fbf2c4c (patch)
tree0395b611e264224bfb0253e48978d67f9856d8a3 /luni
parent80a993c8c667dd6267018ebdc2f018e9520a1ab5 (diff)
downloadlibcore-50cf702adbc10d34e6488786870c4a500fbf2c4c.zip
libcore-50cf702adbc10d34e6488786870c4a500fbf2c4c.tar.gz
libcore-50cf702adbc10d34e6488786870c4a500fbf2c4c.tar.bz2
Corrected documentation of OutputStreamWriter.close()
Made it clear that close() does not flush the underlying stream. That behaviour is in line with reference implementation. Bug: https://code.google.com/p/android/issues/detail?id=65245 Change-Id: Id84986c58bc86cc0b1d4ec5b6c1a2fd925c39c18
Diffstat (limited to 'luni')
-rw-r--r--luni/src/main/java/java/io/OutputStreamWriter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/luni/src/main/java/java/io/OutputStreamWriter.java b/luni/src/main/java/java/io/OutputStreamWriter.java
index d69c87a..bc8710d 100644
--- a/luni/src/main/java/java/io/OutputStreamWriter.java
+++ b/luni/src/main/java/java/io/OutputStreamWriter.java
@@ -122,8 +122,8 @@ public class OutputStreamWriter extends Writer {
}
/**
- * Closes this writer. This implementation flushes the buffer as well as the
- * target stream. The target stream is then closed and the resources for the
+ * Closes this writer. This implementation flushes the buffer but <strong>does not</strong>
+ * flush the target stream. The target stream is then closed and the resources for the
* buffer and converter are released.
*
* <p>Only the first invocation of this method has any effect. Subsequent calls