harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r467980 - /incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java
Date Thu, 26 Oct 2006 12:17:16 GMT
Author: smishura
Date: Thu Oct 26 05:17:16 2006
New Revision: 467980

URL: http://svn.apache.org/viewvc?view=rev&rev=467980
Log:
Apply patch for for HARMONY-1971 ([classlib][tools] KeyStoreLoaderSaver does not close streams)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java?view=diff&rev=467980&r1=467979&r2=467980
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/toolutils/KeyStoreLoaderSaver.java
Thu Oct 26 05:17:16 2006
@@ -123,6 +123,10 @@
         } catch (IOException e) {
             throw (IOException) new IOException("Failed to load the keystore. ")
                     .initCause(e);
+        } finally {
+            if (bis != null) {
+                bis.close();
+            }
         }
         return keyStore;
     }
@@ -180,6 +184,8 @@
         } catch (IOException e) {
             throw (IOException) new IOException("Failed to save the keystore. ")
                     .initCause(e);
+        } finally {
+            bos.close();
         }
     }
 }



Mime
View raw message