From 7cbf306e4cbcbd92600d76beb435da2adbab0088 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Tue, 10 May 2016 10:02:46 -0700 Subject: [PATCH] HADOOP-13118. Fix IOUtils#cleanup and IOUtils#closeStream javadoc. Contributed by Wei-Chiu Chuang. (cherry picked from commit 0f0c6415af409d213e7a132390a850c1251b92ef) --- .../src/main/java/org/apache/hadoop/io/IOUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java index 451163cc140..7deaf624986 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java @@ -234,7 +234,7 @@ public class IOUtils { } /** - * Close the Closeable objects and ignore any {@link IOException} or + * Close the Closeable objects and ignore any {@link Throwable} or * 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. @@ -255,7 +255,7 @@ public class IOUtils { } /** - * Closes the stream ignoring {@link IOException}. + * Closes the stream ignoring {@link Throwable}. * Must only be called in cleaning up from exception handlers. * * @param stream the Stream to close