From f617f7ea986ee1ae8718214767dfb58322764d4c Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 16 Jul 2012 09:27:02 +0200 Subject: [PATCH] Don't close the stream twice --- .../src/main/java/org/sonar/api/utils/HttpDownloader.java | 1 - 1 file changed, 1 deletion(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java index 7abc27a262b..7b22120fe57 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java @@ -131,7 +131,6 @@ public class HttpDownloader extends UriReader.SchemeProcessor implements BatchCo IOUtils.copy(input, output); } catch (Exception e) { - IOUtils.closeQuietly(output); FileUtils.deleteQuietly(toFile); throw new SonarException("Fail to download the file: " + uri + " (" + getProxySynthesis(uri) + ")", e); -- 2.39.5