@Test public void testCloseable() { final MyCloseable obj = new MyCloseable(); CloseUtils.closeQuietly(obj); assertTrue(obj.closed); }
@SuppressWarnings("rawtypes") public static void closeQuietly(final Collection objs) { for (final Object obj : objs) { closeQuietly(obj); } }
CloseUtils { @SuppressWarnings("rawtypes") public static void closeQuietly(final Collection objs) { for (final Object obj : objs) { closeQuietly(obj); } } }
CloseUtils { @SuppressWarnings("rawtypes") public static void closeQuietly(final Collection objs) { for (final Object obj : objs) { closeQuietly(obj); } } CloseUtils(); }
CloseUtils { @SuppressWarnings("rawtypes") public static void closeQuietly(final Collection objs) { for (final Object obj : objs) { closeQuietly(obj); } } CloseUtils(); @SuppressWarnings("rawtypes") static void closeQuietly(final Collection objs); static void closeQuietly(final Object obj); }
CloseUtils { @SuppressWarnings("rawtypes") public static void closeQuietly(final Collection objs) { for (final Object obj : objs) { closeQuietly(obj); } } CloseUtils(); @SuppressWarnings("rawtypes") static void closeQuietly(final Collection objs); static void closeQuietly(final Object obj);  }