@Test public void closeQuietlyTest() { IOUtils.closeQuietly(null); DummyCloseable dummyCloseable = new DummyCloseable(); IOUtils.closeQuietly(dummyCloseable); Assert.assertTrue(dummyCloseable.closed); IOUtils.closeQuietly(dummyCloseable); }
public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } }
IOUtils { public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } } }
IOUtils { public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } } private  IOUtils(); }
IOUtils { public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } } private  IOUtils(); static void closeQuietly(Closeable closeable); }
IOUtils { public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } } private  IOUtils(); static void closeQuietly(Closeable closeable);  }