[IO] Don't deprecate IOUtils#closeQuietly()

2019-11-05 Thread Gary Gregory
Hi All: I propose that we do NOT deprecate IOUtils#closeQuietly(). There are use-cases for this method outside of try-with-resources blocks. For example, I have some wrapper objects that contain Closeable objects. When the wrapper is closed, I do and want to add calls to IOUtils#closeQuietly() to

Re: [IO] Don't deprecate IOUtils#closeQuietly()

2019-11-05 Thread Gary Gregory
In this vein, I'd also like to add a null-safe close(Closeable) method. Gary On Tue, Nov 5, 2019 at 10:10 AM Gary Gregory wrote: > Hi All: > > I propose that we do NOT deprecate IOUtils#closeQuietly(). There are > use-cases for this method outside of try-with-resources blocks. > > For example,

Re: [IO] Don't deprecate IOUtils#closeQuietly()

2019-11-05 Thread Claude Warren
+1 I have similar use cases. On Tue, Nov 5, 2019 at 3:12 PM Gary Gregory wrote: > In this vein, I'd also like to add a null-safe close(Closeable) method. > > Gary > > On Tue, Nov 5, 2019 at 10:10 AM Gary Gregory > wrote: > > > Hi All: > > > > I propose that we do NOT deprecate IOUtils#closeQuie

Re: [IO] Don't deprecate IOUtils#closeQuietly()

2019-11-05 Thread Pascal Schumacher
+1, for removing the deprecatio Am 05.11.2019 um 16:10 schrieb Gary Gregory: Hi All: I propose that we do NOT deprecate IOUtils#closeQuietly(). There are use-cases for this method outside of try-with-resources blocks. For example, I have some wrapper objects that contain Closeable objects. Whe

Re: [IO] Don't deprecate IOUtils#closeQuietly()

2019-11-05 Thread David Mollitor
Here is a discussion about this topic @ Guava. https://github.com/google/guava/issues/1118 On Tue, Nov 5, 2019 at 1:14 PM Pascal Schumacher wrote: > +1, for removing the deprecatio > > Am 05.11.2019 um 16:10 schrieb Gary Gregory: > > Hi All: > > > > I propose that we do NOT deprecate IOUtils#cl