8003263: redundant cast build failure after 8003120
authorweijun
Fri, 16 Nov 2012 10:34:14 +0800
changeset 14510 01a2a198d9ca
parent 14509 4358b75583be
child 14511 d386ddd45711
8003263: redundant cast build failure after 8003120 Reviewed-by: alanb
jdk/src/share/classes/com/sun/naming/internal/ResourceManager.java
--- a/jdk/src/share/classes/com/sun/naming/internal/ResourceManager.java	Thu Nov 15 13:46:45 2012 +0000
+++ b/jdk/src/share/classes/com/sun/naming/internal/ResourceManager.java	Fri Nov 16 10:34:14 2012 +0800
@@ -560,8 +560,7 @@
                     }
                 } finally {
                     while (resources.hasMore()) {
-                        InputStream istream = (InputStream)resources.next();
-                        istream.close();
+                        resources.next().close();
                     }
                 }