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 <[email protected]> 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, 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 avoid null checks in call sites. > > Gary >
