HADOOP-13118. Fix IOUtils#cleanup and IOUtils#closeStream javadoc. Contributed by Wei-Chiu Chuang.
This commit is contained in:
parent
5ffb54694b
commit
0f0c6415af
@ -234,7 +234,7 @@ public static void skipFully(InputStream in, long len) throws IOException {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close the Closeable objects and <b>ignore</b> any {@link IOException} or
|
* Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
|
||||||
* null pointers. Must only be used for cleanup in exception handlers.
|
* null pointers. Must only be used for cleanup in exception handlers.
|
||||||
*
|
*
|
||||||
* @param log the log to record problems to at debug level. Can be null.
|
* @param log the log to record problems to at debug level. Can be null.
|
||||||
@ -255,7 +255,7 @@ public static void cleanup(Log log, java.io.Closeable... closeables) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes the stream ignoring {@link IOException}.
|
* Closes the stream ignoring {@link Throwable}.
|
||||||
* Must only be called in cleaning up from exception handlers.
|
* Must only be called in cleaning up from exception handlers.
|
||||||
*
|
*
|
||||||
* @param stream the Stream to close
|
* @param stream the Stream to close
|
||||||
|
Loading…
Reference in New Issue
Block a user