diff options
author | Brett Porter <brett@apache.org> | 2011-02-17 13:31:17 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2011-02-17 13:31:17 +0000 |
commit | f2b0885b5325555de86a7787a38705e4e1f05b12 (patch) | |
tree | ab2057323f87fec9c9fc7f765cc677da8e3dcc0c | |
parent | 1460694de398573063026e8a633dc93b2fbcba53 (diff) | |
download | archiva-f2b0885b5325555de86a7787a38705e4e1f05b12.tar.gz archiva-f2b0885b5325555de86a7787a38705e4e1f05b12.zip |
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
-rw-r--r-- | archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java | 4 |
1 files 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 ); } } |