@ Nonnull public static ESuccess closeWithoutFlush ( @ Nullable @ WillClose final AutoCloseable aCloseable ) { if ( aCloseable != null ) { try { // close stream aCloseable . close ( ) ; return ESuccess . SUCCESS ; } catch ( final Exception ex ) { if ( ! isKnownEOFException ( ex ) ) LOGGER . error ( "Failed to close object " + aCloseable . getClass ( ) . getName ( ) , ex instanceof IMockException ? null : ex ) ; } } return ESuccess . FAILURE ; }
Close the passed object without trying to call flush on it .