mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 00:59:34 +01:00
removed unused values for variables and fixed javadoc
Former-commit-id: 1fb0be5d88301c5a1043d88b93c052edcebe3c5c
This commit is contained in:
@@ -50,7 +50,7 @@ public final class URLConnectionFactory {
|
|||||||
*/
|
*/
|
||||||
public static HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException {
|
public static HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException {
|
||||||
HttpURLConnection conn = null;
|
HttpURLConnection conn = null;
|
||||||
Proxy proxy = null;
|
Proxy proxy;
|
||||||
final String proxyUrl = Settings.getString(Settings.KEYS.PROXY_SERVER);
|
final String proxyUrl = Settings.getString(Settings.KEYS.PROXY_SERVER);
|
||||||
try {
|
try {
|
||||||
if (proxyUrl != null) {
|
if (proxyUrl != null) {
|
||||||
@@ -96,7 +96,7 @@ public final class URLConnectionFactory {
|
|||||||
* Utility method to create an HttpURLConnection. The use of a proxy here is optional as there may be cases where a
|
* Utility method to create an HttpURLConnection. The use of a proxy here is optional as there may be cases where a
|
||||||
* proxy is configured but we don't want to use it (for example, if there's an internal repository configured)
|
* proxy is configured but we don't want to use it (for example, if there's an internal repository configured)
|
||||||
*
|
*
|
||||||
* @param url the url to connect to
|
* @param url the URL to connect to
|
||||||
* @param proxy whether to use the proxy (if configured)
|
* @param proxy whether to use the proxy (if configured)
|
||||||
* @return a newly constructed HttpURLConnection
|
* @return a newly constructed HttpURLConnection
|
||||||
* @throws URLConnectionFailureException thrown if there is an exception
|
* @throws URLConnectionFailureException thrown if there is an exception
|
||||||
|
|||||||
Reference in New Issue
Block a user