diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-12 13:25:48 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-12 13:25:48 +0000 |
commit | a076f1dc614cee4068226e3a9bb404545bd497a7 (patch) | |
tree | 1b81d8fbae65e1faf289648aef449be062a979fd /sonar-plugin-api/src | |
parent | 969b85fd6ea0931c1d23174c7667cffe752c04a9 (diff) | |
download | sonarqube-a076f1dc614cee4068226e3a9bb404545bd497a7.tar.gz sonarqube-a076f1dc614cee4068226e3a9bb404545bd497a7.zip |
fix unit test
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java | 8 |
1 files changed, 4 insertions, 4 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 3b8a6a9d448..c1c3bebf016 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 @@ -81,7 +81,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent { this.userAgent = userAgent; } - public final String getProxySynthesis(URI uri) { + public String getProxySynthesis(URI uri) { return getProxySynthesis(uri, ProxySelector.getDefault()); } @@ -123,7 +123,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent { } } - public final void download(URI uri, File toFile) { + public void download(URI uri, File toFile) { InputStream input = null; FileOutputStream output = null; try { @@ -143,7 +143,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent { } } - public final byte[] download(URI uri) { + public byte[] download(URI uri) { InputStream input = null; try { HttpURLConnection connection = newHttpConnection(uri); @@ -158,7 +158,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent { } } - public final InputStream openStream(URI uri) { + public InputStream openStream(URI uri) { try { HttpURLConnection connection = newHttpConnection(uri); return connection.getInputStream(); |