public static void closeWithWarning ( Closeable c ) { if ( c != null ) { try { c . close ( ) ; } catch ( IOException e ) { LOG . warning ( "Caught exception during close(): " + e ) ; } } }
Close the Closeable . Logging a warning if any problems occur .