commit | 5cb5245d897e1a65c872698713e6901a7baa1333 | [log] [tgz] |
---|---|---|
author | weijun <none@none> | Fri Nov 16 10:34:14 2012 +0800 |
committer | weijun <none@none> | Fri Nov 16 10:34:14 2012 +0800 |
tree | e90841858534a0a5f11c316edc51f70d768dcef6 | |
parent | 7921ed03ea8e0841ae6fdee9acdd8e053634e299 [diff] |
8003263: redundant cast build failure after 8003120 Reviewed-by: alanb
diff --git a/src/share/classes/com/sun/naming/internal/ResourceManager.java b/src/share/classes/com/sun/naming/internal/ResourceManager.java index 7443fbc..bfee9db 100644 --- a/src/share/classes/com/sun/naming/internal/ResourceManager.java +++ b/src/share/classes/com/sun/naming/internal/ResourceManager.java
@@ -560,8 +560,7 @@ } } finally { while (resources.hasMore()) { - InputStream istream = (InputStream)resources.next(); - istream.close(); + resources.next().close(); } }