@Test public void close_withNull_swallowNot() throws IOException { Closeables.close(null, false); }
public static void close(@Nullable final Closeable closeable, final boolean swallowIOException) throws IOException { if (closeable != null) { try { closeable.close(); } catch (final IOException e) { if (!swallowIOException) { throw e; } LOG.warn(e.getLocalizedMessage(), e); } } }
Closeables { public static void close(@Nullable final Closeable closeable, final boolean swallowIOException) throws IOException { if (closeable != null) { try { closeable.close(); } catch (final IOException e) { if (!swallowIOException) { throw e; } LOG.warn(e.getLocalizedMessage(), e); } } } }
Closeables { public static void close(@Nullable final Closeable closeable, final boolean swallowIOException) throws IOException { if (closeable != null) { try { closeable.close(); } catch (final IOException e) { if (!swallowIOException) { throw e; } LOG.warn(e.getLocalizedMessage(), e); } } } private  Closeables(); }
Closeables { public static void close(@Nullable final Closeable closeable, final boolean swallowIOException) throws IOException { if (closeable != null) { try { closeable.close(); } catch (final IOException e) { if (!swallowIOException) { throw e; } LOG.warn(e.getLocalizedMessage(), e); } } } private  Closeables(); static void close(@Nullable final Closeable closeable, final boolean swallowIOException); static void closeAndConvert(@Nullable final Closeable closeable, final boolean swallowIOException); }
Closeables { public static void close(@Nullable final Closeable closeable, final boolean swallowIOException) throws IOException { if (closeable != null) { try { closeable.close(); } catch (final IOException e) { if (!swallowIOException) { throw e; } LOG.warn(e.getLocalizedMessage(), e); } } } private  Closeables(); static void close(@Nullable final Closeable closeable, final boolean swallowIOException); static void closeAndConvert(@Nullable final Closeable closeable, final boolean swallowIOException);  }