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

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 .
