[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: close charset provider readers
From: |
Anthony Green |
Subject: |
[cp-patches] Patch: close charset provider readers |
Date: |
Wed, 14 Sep 2005 17:38:40 -0700 |
We should close each reader we open. Ok?
2005-09-14 Anthony Green <address@hidden>
* java/nio/charset/Charset.java (providers2): close() each
reader we open.
Index: java/nio/charset/Charset.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/nio/charset/Charset.java,v
retrieving revision 1.24
diff -u -r1.24 Charset.java
--- java/nio/charset/Charset.java 31 Aug 2005 17:01:43 -0000 1.24
+++ java/nio/charset/Charset.java 14 Sep 2005 23:32:58 -0000
@@ -281,6 +281,7 @@
(CharsetProvider) ((Class.forName(s)).newInstance());
set.add(p);
}
+ rdr.close();
}
providers = new CharsetProvider[set.size()];
- [cp-patches] Patch: close charset provider readers,
Anthony Green <=