public static void closeThisThingOrMaybeDont(@Nullable Closeable closeable){
  if (closeable == null) {
    log.d("Can't close closable, arg was null.");
    return;
  }
  try {
    closeable.close();
  }
 catch (  IOException e) {
    log.d("Couldn't close closable, but that's apparently OK.  Error was: " + e.getMessage());
  }
}

public static void closeThisThingOrMaybeDont ( @ Nullable Closeable closeable ) { if ( closeable == null ) { log . d ( "Can't close closable, arg was null." ) ; return ; } try { closeable . close ( ) ; } catch ( IOException e ) { log . d ( "Couldn't close closable, but that's apparently OK.  Error was: " + e . getMessage ( ) ) ; } }
for when you don ' t care if the closeable you ' re closing is null , and you don ' t care that closing a buffer threw an exception , but you still care enough that logging might be useful , like in a " finally " block , after you ' ve already returned to the caller .
