]> granicus.if.org Git - icu/commitdiff
ICU-8854 Unclosed streams.
authorAbhinav Gupta <mail@abhinavg.net>
Mon, 17 Oct 2011 20:24:09 +0000 (20:24 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Mon, 17 Oct 2011 20:24:09 +0000 (20:24 +0000)
X-SVN-Rev: 30838

icu4j/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundle.java
icu4j/main/classes/core/src/com/ibm/icu/impl/URLHandler.java
icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ResourceBasedPeriodFormatterDataService.java

index a02fdc1f262afc4fc7289b83851d0b01b8dbad05..032f17cf6e710f2a4b38c8dec441cc02c314e9ff 100644 (file)
@@ -640,6 +640,7 @@ public  class ICUResourceBundle extends UResourceBundle {
                                         }
                                     }
                                 }
+                                br.close();
                             }
                         } catch (IOException e) {
                             // swallow it
index 00f93e1997ee5d875e2e09847448ef5bf5002e56..55a99f79b15986af48f41c9e4674c223a087c23c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ******************************************************************************
- * Copyright (C) 2005-2010, International Business Machines Corporation and   *
+ * Copyright (C) 2005-2011, International Business Machines Corporation and   *
  * others. All Rights Reserved.                                               *
  ******************************************************************************
  */
@@ -80,6 +80,7 @@ public abstract class URLHandler {
                         if (DEBUG) System.err.println(e);
                     }
                 }
+                br.close();
             }
         } catch (Throwable t) {
             if (DEBUG) System.err.println(t);
index 71326836deee1ab65ada42f5cb79c4627b0d56fb..73cb79a7eb11fa5f93e9c67e97798a55e38f8e6c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ******************************************************************************
- * Copyright (C) 2007-2009, International Business Machines Corporation and   *
+ * Copyright (C) 2007-2011, International Business Machines Corporation and   *
  * others. All Rights Reserved.                                               *
  ******************************************************************************
  */
@@ -66,6 +66,7 @@ public class ResourceBasedPeriodFormatterDataService extends
                 }
                 localeNames.add(string);
             }
+            br.close();
         } catch (IOException e) {
             throw new IllegalStateException("IO Error reading " + PATH
                     + "index.txt: " + e.toString());