mengdiwang / guava-libraries

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

Closeables.closeQuietly() with varargs #513

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be more concise and more comfortable to have closeQuietly(Closeable... 
closeables). I often encouter code where I have to close at least two 
closeables.

some code block e.g.

Reader reader;
Writer writer;
try {
  ...
}
finally {
  Closeables.closeQuietly(reader, writer);
}

Original issue reported on code.google.com by b.michae...@gmail.com on 5 Jan 2011 at 8:14

GoogleCodeExporter commented 9 years ago
I see nothing wrong with multiple sequential calls to closeQuietly.

Original comment by kevinb@google.com on 12 Jan 2011 at 8:54

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