From f2b0885b5325555de86a7787a38705e4e1f05b12 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Thu, 17 Feb 2011 13:31:17 +0000 Subject: [PATCH] ensure that it gets closed, even if close throws exception git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1071608 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/stagerepository/merge/Maven2RepositoryMerger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java b/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java index 7d3a6ff9b..2984d5d6c 100644 --- a/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java +++ b/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java @@ -235,8 +235,8 @@ public class Maven2RepositoryMerger } finally { - out.close(); - input.close(); + IOUtils.closeQuietly( out ); + IOUtils.closeQuietly( input ); } }