mengdiwang / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

LineReader is not Closeable #494

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please, make LineReader implements java.io.Closeable

Original issue reported on code.google.com by eric.van...@gmail.com on 9 Dec 2010 at 3:02

GoogleCodeExporter commented 9 years ago
I don't believe this makes sense.  Closing the LineReader is not an effective 
substitute for closing the backing stream itself -- what if something goes 
wrong between when that stream was opened and the LineReader is created?

Also, not all Readables supplied to the LineReader constructor even *are* 
closeable themselves.

Original comment by kevinb@google.com on 9 Dec 2010 at 9:16

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09