]> source.dussan.org Git - sonarqube.git/commitdiff
Don't close the stream twice
authorDavid Gageot <david@gageot.net>
Mon, 16 Jul 2012 07:27:02 +0000 (09:27 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 16 Jul 2012 07:27:02 +0000 (09:27 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java

index 7abc27a262b1985acbbfeb4573e457034742d22e..7b22120fe5771b2337cfe36dd522d899ce53a46a 100644 (file)
@@ -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);