changeset 6124:51c695958712

8003263: redundant cast build failure after 8003120 Reviewed-by: alanb
author weijun
date Fri, 16 Nov 2012 10:34:14 +0800
parents ac22a52a732c
children 64a42798ea5e
files src/share/classes/com/sun/naming/internal/ResourceManager.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/naming/internal/ResourceManager.java	Thu Nov 15 13:46:45 2012 +0000
+++ b/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();
                     }
                 }