aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2011-02-17 13:31:17 +0000
committerBrett Porter <brett@apache.org>2011-02-17 13:31:17 +0000
commitf2b0885b5325555de86a7787a38705e4e1f05b12 (patch)
treeab2057323f87fec9c9fc7f765cc677da8e3dcc0c
parent1460694de398573063026e8a633dc93b2fbcba53 (diff)
downloadarchiva-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.java4
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 );
}
}