flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [2/2] flink git commit: [hotfix] IOUtils.closeQuietly() closes absolutely quietly.
Date Fri, 02 Dec 2016 11:36:47 GMT
[hotfix] IOUtils.closeQuietly() closes absolutely quietly.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a2cb5df2
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a2cb5df2
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a2cb5df2

Branch: refs/heads/master
Commit: a2cb5df22c105868bbdbd435e8fed56e8bf02a23
Parents: 2fcef5e
Author: Stephan Ewen <sewen@apache.org>
Authored: Thu Dec 1 17:05:47 2016 +0100
Committer: Stephan Ewen <sewen@apache.org>
Committed: Fri Dec 2 12:29:02 2016 +0100

----------------------------------------------------------------------
 flink-core/src/main/java/org/apache/flink/util/IOUtils.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/a2cb5df2/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
----------------------------------------------------------------------
diff --git a/flink-core/src/main/java/org/apache/flink/util/IOUtils.java b/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
index 9810271..11c06a8 100644
--- a/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
+++ b/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
@@ -215,14 +215,15 @@ public final class IOUtils {
 		}
 	}
 
+	/**
+	 * <p><b>Important:</b> This method is expected to never throw an exception.
+	 */
 	public static void closeQuietly(Closeable closeable) {
 		try {
 			if (closeable != null) {
 				closeable.close();
 			}
-		} catch (IOException ignored) {
-
-		}
+		} catch (Throwable ignored) {}
 	}
 	
 	// ------------------------------------------------------------------------


Mime
View raw message