]> source.dussan.org Git - archiva.git/commitdiff
ensure that it gets closed, even if close throws exception
authorBrett Porter <brett@apache.org>
Thu, 17 Feb 2011 13:31:17 +0000 (13:31 +0000)
committerBrett Porter <brett@apache.org>
Thu, 17 Feb 2011 13:31:17 +0000 (13:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1071608 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java

index 7d3a6ff9b7fd43a339d8f6947813fe9d591f1648..2984d5d6cc7550c16dd3f06879716557f2e44f65 100644 (file)
@@ -235,8 +235,8 @@ public class Maven2RepositoryMerger
         }
         finally
         {
-            out.close();
-            input.close();
+            IOUtils.closeQuietly( out );
+            IOUtils.closeQuietly( input );
         }
     }