aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-10 09:01:40 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-10 09:01:40 +0000
commit02f1a19be1419723706ff063865d51e96ccbd5c1 (patch)
tree33e8f2a22722c1d5d093e979b7a5f7333ea9fe9d /sonar-plugin-api
parent88f8591dab4b1bb81f37f0a933698bf4cbb14d83 (diff)
downloadsonarqube-02f1a19be1419723706ff063865d51e96ccbd5c1.tar.gz
sonarqube-02f1a19be1419723706ff063865d51e96ccbd5c1.zip
fix backward-compatibility with jacoco 0.2
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java14
1 files changed, 7 insertions, 7 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 7b0e96a11ca..3b8a6a9d448 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
@@ -38,7 +38,7 @@ import java.net.*;
import java.util.List;
/**
- * This component downloads HTTP files. It currently does not reuse maven proxy configuration on the batch side.
+ * This component downloads HTTP files
*
* @since 2.2
*/
@@ -57,9 +57,9 @@ public class HttpDownloader implements BatchComponent, ServerComponent {
}
/**
- * for unit tests
+ * Should be package protected for unit tests only, but public is still required for jacoco 0.2.
*/
- HttpDownloader() {
+ public HttpDownloader() {
this(new PropertiesConfiguration(), null);
}
@@ -81,7 +81,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent {
this.userAgent = userAgent;
}
- public String getProxySynthesis(URI uri) {
+ public final String getProxySynthesis(URI uri) {
return getProxySynthesis(uri, ProxySelector.getDefault());
}
@@ -123,7 +123,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent {
}
}
- public void download(URI uri, File toFile) {
+ public final void download(URI uri, File toFile) {
InputStream input = null;
FileOutputStream output = null;
try {
@@ -143,7 +143,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent {
}
}
- public byte[] download(URI uri) {
+ public final byte[] download(URI uri) {
InputStream input = null;
try {
HttpURLConnection connection = newHttpConnection(uri);
@@ -158,7 +158,7 @@ public class HttpDownloader implements BatchComponent, ServerComponent {
}
}
- public InputStream openStream(URI uri) {
+ public final InputStream openStream(URI uri) {
try {
HttpURLConnection connection = newHttpConnection(uri);
return connection.getInputStream();