changeset 14510 | 01a2a198d9ca |
parent 14417 | 4615017b9cab |
child 22089 | ba496138fa35 |
--- 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(); } }