diff options
author | David Gageot <david@gageot.net> | 2012-07-16 09:27:02 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-16 09:27:02 +0200 |
commit | f617f7ea986ee1ae8718214767dfb58322764d4c (patch) | |
tree | 4475686b18b828aa0d982e82d8d8115e45abaed3 /sonar-plugin-api/src | |
parent | 609f02fb8b2cc66729eead47d1fe070f6ff8b6ed (diff) | |
download | sonarqube-f617f7ea986ee1ae8718214767dfb58322764d4c.tar.gz sonarqube-f617f7ea986ee1ae8718214767dfb58322764d4c.zip |
Don't close the stream twice
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java | 1 |
1 files changed, 0 insertions, 1 deletions
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); |