]> source.dussan.org Git - archiva.git/commitdiff
correctly close streams
authorOlivier Lamy <olamy@apache.org>
Mon, 14 May 2012 14:38:19 +0000 (14:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 14 May 2012 14:38:19 +0000 (14:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1338226 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java

index fba338debed26828d48e55b686928c7fc555ce13..d39bc78ce080f045bb6f862b2e0629daa6bddf41 100644 (file)
@@ -545,8 +545,8 @@ public class DefaultRepositoriesService
         }
         finally
         {
-            out.close();
-            input.close();
+            IOUtils.closeQuietly( out );
+            IOUtils.closeQuietly( input );
         }
 
         if ( fixChecksums )
index 21c141df0a56aeefc4d56a1ee1c301311a62ccdc..3e83626f9341f8a0525a4eb6a58e37d37f43fbdf 100644 (file)
@@ -469,8 +469,8 @@ public class UploadAction
         }
         finally
         {
-            out.close();
-            input.close();
+            IOUtils.closeQuietly( out );
+            IOUtils.closeQuietly( input );
         }
 
         if ( fixChecksums )